A parking garage charges a S.R. 2.00 minimum fee to park for up to three hours.
After that, garage charges an additional S.R. 0.50 per hour for each extra hour or less.
The maximum charge for any given 24-hour period is S.R. 10.
No car parks for longer than 24 hours at a time.

Write a program that reads the hours parked for 3 customers yesterday, then calculates and prints the parking charges for each in a neat tabular format and should calculate and print the total of yesterday’s receipts.

jalpesh_007 commented: first try the ask +0

Recommended Answers

All 2 Replies

What have you written so far? Do you have any specific questions about your assignment?

commented: you're right. +3

we are not here to do your homework.
Just try something and then ask for problem in it.
First try to make some code,and thenk ask.You can ask specific problem from your assignment.

So first try, then ask.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.