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 Calculatecharses(i) 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 1: Input - Get the hours parked for each customer.
Step 2: Calculate parking charges
The parking garage charges a $2.00 minimum fee to park for up to three hours.
The garage charges an additional $0.50 per hour for each hour or part there of in excess of three hours.
The maximum charge for any given 24-hour period is $10.00.
Assume that no car parks for longer than 24 hours at a time.
Step 3: Return the total parking charges for the customer.
2. Write a method IntegerPower(base, exponent) that returns the value.
For example, IntegerPower (3,4) calculates 3 power 4(or 3**3**3**3.
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 Math-library 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
 Write a C# program Write an app that calculates and displays

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!