Question: This needs to be done in java Write a menu-driven program that will give the user the three choices: 1) Wage calculator, 2) Tip Calculator,
This needs to be done in java


Write a menu-driven program that will give the user the three choices: 1) Wage calculator, 2) Tip Calculator, and 3) Exit Class Name: PartA Password Access: For the user to gain access to the menu, they must enter a pin number (use pin 9999 for this first program). You will prompt the user for the pin number. If the pin is correct, then display the menu. If the pin is incorrect, end the program with a message "Thank you for using our menu system." Wage Calculator: For the wage calculator, prompt for the name and hourly pay rate of an employee. Here the hourly pay rate is a floating-point number, such as S9.25. Then ask how hours the employee worked in the past week. Be sure to accept fractional hours. Compute many the pay. Any overtime work (over 40 hours per week) is paid at 150 percent of the regular wage (1.5 the hourly pay rate). Print the employee's name, regular hours worked, regular hours pay, overtime hours worked (do not show overtime hours, if there are none), overtime hours pay (do not show overtime pay if there is none), and total pay. [Do not prompt for overtime hours] Tip Calculator: For the tip calculator, the tip is calculated based on the diner's satisfaction level. Ask for the diner's satisfaction level using these ratings: 1=Totally satisfied, 2-satisfied, 3-Dissatisfied. If the diner's choice is 1, calculate a 20 percent tip. If the diner's choice is 2, calculate a 15 percent tip. If the diner's choice is 3, calculate a 10 percent tip. Print the satisfaction level and tip in dollars and cents. [Format: "Your tip is S4.00 (Totally satisfied)"] Exit: The exit choice will display a statement that the program will end and thank the user for using the program. [They must choose to exit the menu, not default out - it is a menu option]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
