Question: Programming In C + + Lab 4 B Objective To learn to code, compile and run a program containing repetition structures. Assignment Plan and code

Programming In C++
Lab 4B
Objective
To learn to code, compile and run a program containing repetition structures.
Assignment
Plan and code a C++ program utilizing one or more repetition structures to solve the following problem:
Write a program for Pentagon Parking Lot for all customers that use the lot during the day. The lot opens at 6:00 am and
closes at 10:00 pm. Charges for vehicles are based upon the following rates:
A. Have the user enter a character designation for rate of charge (C,T,S), the starting time and ending time in
military time or parking lot use.
B. Determine the total number of hours. Any part of an hour is to be counted as a full hour.
C. Compute the appropriate charge and print out a ticket for each customer.
D. Adequately check entered data for validity. Be sure to check for invalid data and handle it appropriately. Use
adequate test data to process all valid data and any possible combination of invalid data.
E. Print out the total fees for each type of rate charged during the entire day.
Input
Rate designation (C,T,S), starting time, ending time
Output
Itemized listing of charges for each vehicle and an itemized summary of all charges for the day. Label all output clearly.
Be sure your output file contains user prompts and what was entered by the user in addition to the results of your
program processing.
Run
Run with the following data:
Turn In
Turn in source code and program output.
Programming In C + + Lab 4 B Objective To learn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!