ITP100_Chapter4Homework
Document Content and Description Below 1. Write pseudocode to calculate the weekly pay for employees. The user will be prompted to enter the number of hours worked and their job code. Hours in excess of 40 are paid at 1.5 times the hourl y 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% Write pseudocode 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 pseudocode 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
Documentinformatie
- Geüpload op
- 24 juni 2021
- Aantal pagina's
- 6
- Geschreven in
- 2020/2021
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden