Assignment Plan and code a C program utilzing 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 600 am and doses at 1000 pm. Charges for vehicles are based upon the following rate First 2 hours Free Cars $1.00 per hour S0.5 per hour Next 3 hours Next 11 hours First hour Free $2.00 per hour $1.00 per hour No Charge Trucks Next 2 hours Next 13 hours Senior Citizens 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. 8 Determine the total number of hours. Any part of an hour is to be counted as a ful 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 handie 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 isting 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 Start time End time Type 605 710 859 910 723 1223 810 1105 1720 720 645 1009 1755 2010 555 1000 1011 2220 Turn in Turn in source code and program output.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

please do this program in c++, and avoid using any strings/advanced manipulators. Thanks

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:
sanou z sa
Free
Next 3 hours
Next 11 hours
$0.5 per hour
anoy ad 00I$
noy
Next 2 hours
Free
Trucks
$1.00 per hour
noy ad 00 2S
Next 13 hours
Senior Citizens
aD ON
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.
8. 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 handie 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.
induj
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 fle contains user prompts and what was entered by the user in addition to the results of your
program processing.
Run with the following data:
Start time
End time
ada
016
1223
T.
C.
6001
000t
C.
andyno weoud pue apoo aoanos u uang
Transcribed Image Text: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: sanou z sa Free Next 3 hours Next 11 hours $0.5 per hour anoy ad 00I$ noy Next 2 hours Free Trucks $1.00 per hour noy ad 00 2S Next 13 hours Senior Citizens aD ON 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. 8. 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 handie 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. induj 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 fle contains user prompts and what was entered by the user in addition to the results of your program processing. Run with the following data: Start time End time ada 016 1223 T. C. 6001 000t C. andyno weoud pue apoo aoanos u uang
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY