The sign on the attendant’s booth at the XYZ parking lot is
XYZ VISITOR PARKING
First 2 hours Free
Next 3 hours 0.50/hour
Next 10 hours .25/hour
First 1 hour Free
Next 2 hours 1.00/hours
Next 12 hours 0.75/hour
Senior Citizens: Free of charge
Write a program that will accept as input a one-character designator (C, T or S)
Followed by two military numbers in range of 0600-2200 (6:00 A.M to 10:00 P.M). The program should
Then compute the appropriate charge and the round up time that car was parked.
The output should be printed for each vehicle , arrival time, departure time and cost. Your program should also provide a summer at the end of each day indicating total cars, trucks, and senior , time and fees. Your program should have loop which ends with ^Z.
this is the question. im new to C so i didnt use case and breaks.. but i used if and else. my qustion in when i compile it deos not show anything!! why is that??
ps im suppose to ask "if you want to conitue". if anybody could help me with that that would be awsome!!!
int t, in, out;
while(("%c %d %d", &type, &in, &out)!=EOF)
else if (t<=5)
else if (type=='T')
else if (t<=3)
else if (type=='S')
printf("youcame in @:%d", in);
printf("you left @: %d", out);
printf("your cost is: %lf", total);