Question: Create an SADITM with Structure Chart for the following problem based in C programming: A parking garage charges hospital staff $2.00 a day to park

Create an SADITM with Structure Chart for the following problem based in C programming:

A parking garage charges hospital staff $2.00 a day to park in the parking garage. Patients are charged a $3.00 minimum fee to park for 8 hours and an addition $1.25 for each additional hour. Guests pay $5.00 for the first 3 hours and $1.50 for each additional hour. Write a program that will calculate and print the charge for each car exiting the garage. The parking operator should input the type of person exiting (Staff, Patient, or Guest) and the number of hours the car was in the garage. Output should include the type of person, number of hours, and charge for each car. The program should also print the revenue at the end of the day after all cars have exited. The parking operator will terminate any input and indicate closing by entering an E for exit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!