Write program to compute salary of employee

Assignment Help Programming Languages
Reference no: EM1369659

You are required to write a program which will calculate the salary of an employee according to his/her grade assigned by the employer. You must declare a class named CalSalary whose private data members will be employee ID, employee name and employee grade. Also write a constructor, setter and getter functions for all private data members and a function that will calculate the salary.

Detailed Description:

• Employee ID and grade should be of type integer. Employee name should be of type string.
• Constructor should initialize employee ID and grade with value zero and employee name with value NULL.
• For assigning or extracting values from private data members, you must use getter and setter functions.
• Declare a public member function named calculate which will calculate the net salary of the employee according to his/her grade.
• Formula for calculating actual salary is (Basic Salary) + 45% of basic salary.
• If the grade of employee is 17, then the basic salary is 15,000.
• If the grade is 18, then the basic salary is 20,000 and if grade is 19 then the basic salary is 25,000.

Reference no: EM1369659

Questions Cloud

Why is it that grazing land was not protected by families : This grazing land was for whole town and families could allow their flock of sheep to graze free of charge. Why is it that grazing land was not protected by individual families.
Explain pay for performance is just as important : Explain Pay for performance is just as important in non-for-profit organizations and Assume you are founder of a non-profit public charity of your choice.
What should zelnick and conroy do : What should Zelnick and Conroy do. Should BMG integrate. Should they continue to work with a wide array of technology partners.
Determine standard methods used in macroeconomics : Derive LM curve through one of the standard methods used in Macroeconomics. Be sure to label all axis and curves on your graph. Describe in writing to what your derivation brings equilibrium and how it accomplishes this.
Write program to compute salary of employee : Write a program to compute the salary of an employee according to his/her grade assigned by employer. You should declare class named CalSalary whose private data members will be employee.
What is joint profit-maximizing level of output : Suppose both firms have entered industry. What is joint profit-maximizing level of output. How much will each firm produce. How would your answer change if firms have not yet entered industry.
Find a news article about a fortune five hundred company : Find a news article about a Fortune 500 company and its CEO that illustrates ethical behavior and Is there any evidence that his or her company's productivity
Characteristics of pure monopoly & monopolistic competition : List the basic characteristics of pure monopoly, monopolistic and oligopoly competition. Under which of these market classifications does each of following most accurately fit?
What are coral reefs status of coral reefs threats to coral : What are coral reefs Status of coral reefs Threats to coral reefs Uses of coral reefs what is a Coral Reef. Fleshy sac topped with ring of tentacles around central mouth opening what is a Coral Reef.

Reviews

Write a Review

Programming Languages Questions & Answers

  How to assign new value to element of array indexed by j

Write single statement which assigns a new value to element of array indexed by j . This new value must be equal to twice the value stored in next element of the array (i.e. element after the element indexed by j.

  Executive committee for alleviating it complexity

You are a consultant brought in by the executive committee to make recommendations for alleviating the "IT complexity" concerns of the executives at the company.

  Describe how to create users for sales organization unit

Describe how you would create users for sales organization unit and how you can set up user groups in this particular situation (global, universal, domain local).

  Card generator program by linked list

Address Book-Card Generator Program Using a Linked List. This program will have names and addresses saved in a linked list. In addition, a birthday and anniversary date will be saved with each record.

  Statements to find array elements are null or not

Write down statements needed to find whether any of the array elements are null or refer to the empty String. Set the variable hasEmpty to true.

  Write pseudo algorithm to input age

Write a pseudo algorithm that inputs Age, displays "Yes, you can vote" if Age is 18 or older and displays "You are too young to vote" if Age is less than 18.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Module program to compare state and county sales tax

Create a module program which will ask the user to enter amount of a purchase. Program must then compare state and county sales tax.

  Write the constructor function makestk

Write the constructor function makestk, predicate function emptystk and mutator functions pushstk and popstk

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

  Write program to read ten numbers-display distinct numbers

Write a program that reads in ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once).

  Design function to accept two integer values

Design function named max that accepts two integer values as arguments and returns the value that is the greater of the two. for example if 7 and 12 are passed as arguments to the function the function should return 12.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd