Class: Information Technology
Date Administered: September 4, 2019
Date Due: September 6, 2019
Submission Format: Hardcopy of source code (printed or folder sheet)
To be graded. 10 points each
Instructions: Write structured algorithms for the following problems: (simple algorithms)
1. Doctor Bob works for the local clinic part-time and gets paid $75.00 for each patient that he does a basic physical on, except for NHI patients. For NHI patients, he gets paid $50.00 per patient. Write an algorithm that calculates and shows the total that Doctor Bob should get paid at the end of a day at the clinic.
2. Write an algorithm that prompts the user to enter two values that are stored in variables A and B. The algorithm should find and display the product and mean of the values.
3. The city bus charges $1.00 for adults and $0.50 for children. Write a program that calculates and outputs the total income made for a day. Assume that the same amount of money is made daily and calculate and output the total collected for the week.
4. You and three of your friends are planning a trip to Xunantunich. You have all agreed that you will share the cost evenly, including bus fare and food. Write an algorithm that calculates and outputs the cost each of you will have to pay.
No comments:
Post a Comment