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 a and closes at 10:00 pm. Charges for vehicles are based upon the following rates: Cars Trucks Senior Citizens First 2 hours 3 hours Next Next 11 hours First hour Run Run with the following data Next Next 13 hours 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. Determine the total number of hours. Any part of an hour is to be counted as a full hour. 8. 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 changed during the entire day. Input Rate designation (C, T. S), starting time, ending time 2 hours 859 723 810 720 645 Output temized 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 Start time 605 Turn In Tumn in source code and program output. 1009 555 1011 Free $1.00 per hour $0.5 per hour Free $2.00 per hour $1.00 per hour No Charge End time 710 910 3223 1105 1720 3755 2010 1000 2220 Type C T C T C T S T C

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please do in c++, without use of strings or advanced manipulators

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:
sinoy z 1S
Free
Next 3 hours
51.00 per hour
sunoy tt ON
noy ad sOS
First hour
Next 2 hours
Next 13 hours
$2.00 per hour
$1.00 per hour
No Charge
Trucks
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 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 invalld data and handle it appropriately. Use
adequate test data to process all vald data and any possible combination of invalid data.
E. Print out the total fees for each type of rate charged during the entire day.
sndu
Rate designation (C, T, S), starting time, ending time
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
ndino
ung
Run with the folowing data
Start time
ua pu
Type
C.
EZEE
SOLE
SSS
000
Turn In
ndyno ueoud pue apoo aunos u un L
OL4
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: sinoy z 1S Free Next 3 hours 51.00 per hour sunoy tt ON noy ad sOS First hour Next 2 hours Next 13 hours $2.00 per hour $1.00 per hour No Charge Trucks 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 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 invalld data and handle it appropriately. Use adequate test data to process all vald data and any possible combination of invalid data. E. Print out the total fees for each type of rate charged during the entire day. sndu Rate designation (C, T, S), starting time, ending time 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 ndino ung Run with the folowing data Start time ua pu Type C. EZEE SOLE SSS 000 Turn In ndyno ueoud pue apoo aunos u un L OL4
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 6 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Can this be completed using a while loop at least once or twice

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education