Question: Write a Java program that computes the total earnings for 3 employees. This is for Discrete Structures I class, please use basic Java, thanks in

Write a Java program that computes the total earnings for 3 employees. This is for Discrete Structures I class, please use basic Java, thanks in advance. Write a Java program that computes the total earnings for 3 employees.

The program should have a menu (run by a switch structure) that lets the use choose to 1. Enter data for 3 employees. 2. Display total earnings for 3 employees. 3. Quit The program should have separate functions for the 3 menu choices, called in the switch structure. Your program should use a loop to let the program run until the user chooses to quit. Store the data about the employees in two arrays: an integer array for the number of hours worked (only whole hours allowed) and a float array for the hourly wages. Output should be nicely formatted; that is, showing a dollar sign followed by a space, followed by the total earnings showing exactly 2 places after the decimal point

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!