1.Design an algorithm to calculate the weekly pay for employees. The user will prompted to enter the number of hours worked and their job code. Hours in excess of 40 are paid at 1.5 times the hourly pay. Job code hourly rates are: P - $10, Q - $12.50, R - $15.00, and S - $20.00. Use both a case and a selection structure.

2.At a college the tuition for 1 credit hour is $500, but student are given a discount based on the following:

Credit hours Discount
1-5 2%
6-10 5%
11-15 8%
16 or above 10%

Design a program that will ask the user to enter the number of credit hours they are registered for, and then calculated the total cost, the discount, and the cost after the discount.

3.Write a program that will calculate a XXX% tip and a 6% tax on a meal price. The user will enter the meal price and the program will calculate tip, tax, and the total. The total is the meal price plus the tip plus the tax. Your program will then display the values of tip, tax, and total.

The restaurant now wants to change the program so that the tip percent is based on the meal price. The new amounts are as follows:

Meal Price Range Tip Percent
.01 to 5.99 10%
6 to 12.00 13%
12.01 to 17.00 16%
17.01 to 25.00 19%
25.01 and more 22%

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.