Question: Write a menu-driven program that will give the user the three choices 1) Pay Calculator, 2) Bonus Calculator, and 3) Exit Pay Calculator Prompt for
Write a menu-driven program that will give the user the three choices 1) Pay Calculator, 2) Bonus Calculator, and 3) Exit Pay Calculator Prompt for the employee's name and salary of an employee Here the salary will denote an hourly wage, such as exist9.25 Then ask how many hours the employee worked in the past week. Be sure to accept fractional hours Compute the pay. Any overtime work (over 40 hours per week) is paid at 150 percent of the regular wage (1.5 the overtime pay) Print the employee's name, hours worked, overtime hours worked (do not show overtime, if there is none), regular hours pay. overtime hours pay (do not show overtime pay if there is none), and total pay. Bonus Calculator A company rewards salespeople for the number of sales over 5 and if the average sale is over exist500 Prompt for the employee's name, number of sales, and total sales amount For every sale over 5 the employee is awarded exist25. If the average sale is more than exist500. employees are awarded 20% of the amount over exist500 (e g the average is exist750. the employee's would be awarded 20% of exist250). Print the employee's name, number of sales. total sales amount, average sales amount, bonus on number of sales, bonus on average sale, and total bonus amount The exit choice will display a statement that the program will end and thank the user for using the program Your program should be complete and with correct convention and Commenting. To obtain 50 of 100 points, your program must compile and run You will obtain 30 points. If your program runs correctly. You will obtain 20 point for all other convention and commenting (this includes file)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
