Question: The employees are stored in an array in the Driver class. Which is an array of the object employee. I have already build the propmt

 The employees are stored in an array in the Driver class.

The employees are stored in an array in the Driver class. Which is an array of the object employee.

I have already build the propmt that uses a do while loop and uses cases to ask the user for input.

The options the user selects are :

N: New employee

P: Compute paychecks

R: Raise wage

L: List all employees

Q: Quit

I feel bad for asking someone else to do my CS(my major) assignment but i have a calculus test and physics. This is due tonight so thanks for helping me.

The program will repeatedly prompt the user to enter a command, which it then executes. The program will not terminate until the user enters the command q Note that the list of commands is redisplayed after each d has been executed Write three classes that store information about an employee Employee (abstract). Instances of this class will store an employee name and the employee's hourly wage. Methods will include getters and setters for the name and hourly wage; a method that increases the hourly wage by a given percentage and an abstract method named computePay that computes the weekly p for the employee when given the number of hours worked Hourly Employee extends Employee. The constructor will take a name and hourly wage as its parameters. Methods will include computePay and toString. To determine the employee's pay, computePay multiplies the first 40 (or fewer) hours by the employee's hourly wage. Hours worked beyond 40 are paid at time and a half 1.5 times the hourly wage). toString returns a string containing the employee's name and hourly wage Salaried Employee extends Employee. The constructor will take a name and annual salary as its parameters. Methods will include a getter and a setter for the annual salary, along with computePay and toString. (Note that the salary will need to be converted to an hourly wage, because that's what the Employee class requires. To do this conversion, assume that a salaried employee works 40 hours a week for 52 weeks computePay always returns 1/52 of the annual salary, regardless of the number of hours worked. toString returns a string containing the employee's name and annual salary Use an array to store the employee records. Each element of the array will store a reference to an Hourly Employee object or a SalariedEmployee object. The array used to store employee objects must contain only one element initially. When the array becomes full, it must be doubled in size Here are a few other requirements for the program Dollar amounts must be displayed correctly, with two digits after the decimal point. For example, make sure that your program displays $100.00 and not $100.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!