Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSIT 575-Programming Fundamentals for Computer Science Lab #4B Obiectives To learn to code, compile and run a program containing REPETITION structures Assignment Plan and code
CSIT 575-Programming Fundamentals for Computer Science Lab #4B Obiectives To learn to code, compile and run a program containing REPETITION structures 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 Cars First 2 hours Next 3 hours Next 10 hours Free $1.00 per hour $0.50 per hour Free $2.00 per hour $1.00per hour No charge Trucks First 2 hours Next 2 hours Next 12 hours Senior Citizens Have the user enter a character designation for rate of charge (C, T, S), the starting time and ending time (irn 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. 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 Itemized 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 all valid 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started