Question: C# coding: How would I code this problem please ? A car rental agency charges $29.99 per day and 35 cents per mile with a

C# coding: How would I code this problem please ?

C# coding: How would I code this problem please ? A car

rental agency charges $29.99 per day and 35 cents per mile with

A car rental agency charges $29.99 per day and 35 cents per mile with a standard rental fee of $1.75. Assume that the user will not enter non-numeric data, so you're welcome to use one of the Parse() or Convert methods. You may, however, use TryParse() if you prefer. Example output: ** PROBLEM 2 *** Enter number of days: 0 Invalid number of days. Please re-enter. Enter number of days: 10 Enter number of miles: -50 Invalid number of miles. Please re-enter. Enter number of miles: 100 Car rental at $29.99 per day for 10 days is $299.90 Mileage at $0.35 per mile for 100 miles is $35.00 Total cost including a fee of $1.75 is $336.65

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!