Question:
Help With Some C Programming Please.?
compaq1j30
2009-10-14 14:05:56 UTC
i need help with this C, ( C only not C++)
All Help Is Appreciated

The sign on the attendant’s booth at the XYZ parking lot is


XYZ VISITOR PARKING

Cars:
First 2 hours Free
Next 3 hours 0.50/hour
Next 10 hours .25/hour
Trucks:
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.
Three answers:
?
2009-10-15 14:17:54 UTC
This looks like a pretty simple homework assignment - which part are you having difficulty with ? Post your code so far and people here can help you to get it working...
anonymous
2016-10-21 18:48:13 UTC
no longer anymore, at one time C++ became into basically an extension of C. considering that then, C has replaced, and so has C++. even if if that being suggested it is common for an identical software to assemble the two C and C++. the tactic is an identical, yet there are basically some variations int he libraries which you desire the compiler to link to.
JustGoogleIt
2009-10-14 14:47:21 UTC
Yahoo Answers is not for doing your school homework!!!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...