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
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...
Related questions
Question
please do in c++, without use of strings or advanced manipulators
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 6 images
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
by Bartleby Expert
Knowledge Booster
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
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr