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
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