Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BUS 6 4 0 Assignment # 3 Due Date: January 2 1 by 1 1 : 5 9 pm Code a program that calculates the
BUS Assignment #
Due Date: January by : pm
Code a program that calculates the fee charged by a parking garage. Use the specifications below to code
the program:
Prompt the user to enter a number of hours parked
Calculate and print the parking fee based on the following criteria:
The garage charges a minimum fee of $ for parking up to hours.
The charge for each additional hour over and up to is $ perhour.
After hours, the charge drops to $ perhour.
The maximum parking fee for a hour period is $ and you may assume that no one
parks for more than hours.
Example:
Enter hours parked:
Your parking fee for? hours is
Example:
Enter hours parked:
Your parking fue fur huurs is
Example:
Enter hours parked:
Your parking fee for hours is
Example:
Enter hours parked:
Your parking fee for hours is
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