Question: Write a C# program Write an app that calculates and displays the parking charges for many customers who parked in the garage. Ask the user
Write a C# program
Write an app that calculates and displays the parking charges for many customers who parked in the garage. Ask the user if there is any more customer if answer is No then stop. Else continue.
From the calling app, call Calculatecharsesi for each customer. Based on the return value from this method, display the $ amount.
Write a method Calculatecharges to determine the charge for each customer.
Step : Input Get the hours parked for each customer.
Step : Calculate parking charges
The parking garage charges a $ minimum fee to park for up to three hours.
The garage charges an additional $ per hour for each hour or part there of in excess of three hours.
The maximum charge for any given hour period is $
Assume that no car parks for longer than hours at a time.
Step : Return the total parking charges for the customer.
Write a method IntegerPowerbase exponent that returns the value.
For example, IntegerPower calculates power or
Assume that exponent is a positive integer and that base is an integer.
Method IntegerPower should use a for or while loop to control the calculation.
Do not use any Mathlibrary methods.
Incorporate this method into an app that reads
a Integer values for base and exponent
b performs the calculation with the IntegerPower method.
C returns the answer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
