Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE USE C++ Assignment Plan and code a program utilizing one or more repetition structures to solve the following problem Write a program for Pentagon

PLEASE USE C++

image text in transcribed

Assignment Plan and code a 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: First 2 hours Next 3 hours Next 10 hours First 2 hours Next 2 hours Next 12 hours Cars: Free $1.00 per hour $0.50 per hour Free $2.00 per hour $1.00per hour No charge Trucks Senior Citizens: Have the user enter a character designation for rate of charge (C, T, S), the starting time and ending time (in military time) for parking lot use. Determine the total number of hours. (Any part of an hour is to be counted as a full hour.) Compute the appropriate charge and print out a ticket for each customer. Be sure to check for invalid data and handle it appropriately. Loop for multiple vehicles - have the user enter Y or No to repeat for another vehicle for each loop iteration. 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 ltemized listing of charges for each vehicle, and an itemized summary of all charges for the day Note Adequately check entered data for validity. Use adequate test data to process avalid data and representative data to show how your program handles invalid data 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 BE SURE TO INCLUDE ADEQUATE ERROR HANDLING IN YOUR PROGRAM AND ERROR DATA WHEN YOU RUN THE PROGRAM TO DEMONSTRATE ERROR HANDLING Turn in Program listing and program output. Program documentation and first lines in the output file should include: //Last Name, First Name //Class Section Number, Day, Time //Lab Number and Assignment Due Date

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Solve each equation. Give solutions in exact form. log x = log x

Answered: 1 week ago