Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Cars: First 2hours Free Next 3hours 0.50/hour Next 10 hours.25/hour Trucks: Firs

ID: 3612832 • Letter: C

Question

Cars:

        First 2hours    Free

        Next 3hours   0.50/hour

        Next 10 hours.25/hour

Trucks:

        First 1hour     Free

        Next 2hours   1.00/hours

        Next 12 hours0.75/hour

Senior Citizens: Free of charge

Write a program that will accept as input a one-characterdesignator (C, T or S)

Followed by two military numbers in range of 0600-2200 (6:00 A.Mto 10:00 P.M). The program should

Then compute the appropriate charge and the round up time thatcar was parked.

The output should be printed for each vehicle , arrival time,departure time and cost. Your program should also provide a summerat the end of each day indicating total cars, trucks, and senior ,time and fees. Your program should have loop which ends with^Z.

Explanation / Answer

please rate - thanks #include #include #include int main() {int i; char type; int enter,exit,cars=0,trucks=0,senior=0,cat1,cat2,cat3,hours; double time=0,fees=0,p1=0,p2,p3,totfees=0; do { couttype; type=toupper(type); if(type!='C'&&type!='S'&&type!='T')        cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote