Professional Documents
Culture Documents
CC102: Computer Programming 1 Laboratory Activity 2: Requirement/Task Machine Problem 1 Machine Problem2 Comment
CC102: Computer Programming 1 Laboratory Activity 2: Requirement/Task Machine Problem 1 Machine Problem2 Comment
Laboratory Activity 2
Date: _________________
Machine Problem 1:
The C++-Side Restaurant wants you to write a program that simulates a simple cash register. The program should ask
the user to enter the price of the meal. The program should calculate the sales tax (8.25% of the meal price) and add
it to the price to obtain the total price, which it should display for the user. The program is then to ask for the amount
tendered, that is, the amount the customer gives to pay the bill. After the user enters the amount tendered, the program
should display the amount tendered, the total price of the meal, and the change.
Machine Problem 2:
Your instructor wants you to write a program that averages the three quiz grades you have taken this semester. Write
a program that prompts the user for three integer quiz grades, calculates the average of the three grades, and displays
the average.
SCORING RUBRIC
(Encircle the score that reflects the actual accomplishment)