Create an application that demonstrates all the methods


Problem

Complete the following tasks:

a. Create a class named Pay that includes five numeric variables: hours worked, hourly pay rate, withholding rate, gross pay, and net pay. Also create three overloaded compute Net Pay() methods. When compute Net Pay() receives values for hours, pay rate, and withholding rate, it computes the gross pay and reduces it by the appropriate withholding amount to produce the net pay. (Gross pay is computed as hours worked multiplied by hourly pay rate.) When compute Net Pay() receives two arguments, they represent the hours and pay rate, and the withholding rate is assumed to be 15 percent. When compute Net Pay() receives one argument, it represents the number of hours worked, the withholding rate is assumed to be 15 percent, and the hourly rate is assumed to be 6.50.

b. Create an application that demonstrates all the methods.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Create an application that demonstrates all the methods
Reference No:- TGS02648748

Expected delivery within 24 Hours