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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr