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
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
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
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education