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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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