Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ITS 128: Introduction to Problem Solving Quit 6: Functions |2 points total Problem Statement: Design a Visual C# solution (form) that wil allow the Paws
ITS 128: Introduction to Problem Solving Quit 6: Functions |2 points total Problem Statement: Design a Visual C# solution (form) that wil allow the Paws Rental Car to determine the totalCharges for renting a car, Information such as a customerNumber (string), carType integer), mileage Idouble) and numberOfDays (integer) must be allowed in this solution. The mileage >0), numberOfDays>0), and carType (either 1, 2 or 3) also must be validated. Use either an error abel, message bax, or error provider to display an informative message to the user 1. Pressing the Calculate button determines which insurance plan to select and computes a. Three types of cars are available for rent carTyne 20.00 $25.00 $32.00 chareePerMle 0.25 0.35 50.40 h. Compute totalDailyCharge- numbe OfDays chargePerDay for the carType entered Create afunstion for this computation named Caleulat TetalDailyCharee Write the totalDailyCharge to the labelTotalDaityCharge as currenty c. Compute totalMilaeCharg mileage chargePerMile for the carTypc entered. Create afunction for this computation named CaleulateTotalMileaeCharre write the totalMileageCharge tn the labele talMileageCharge Determine which insurance Plan to select: L currency. d. Compute the insurance costs far BOTH Insurance Plan 1 and Plan 2. 20% of totalDailyCharge plus 10% of totalMileageCheree with a 15.00 minimum (meaning that Insuranc PlanlCost cannot he less than $15.00; if it is less, change its value to $15.00 insurancePlan2Cost $20.00+(S2.00 per day af rentall ii. Compare the costs for Plan 1 and Plan 2 (compare insurancePlan1Cost to insurancePlan2Cost). Select the plan that has the SMALLER cost. If both costs are equal, select Plan 1. Write the plan number selected in the labellnsurancePlan and insurance cost in the labellnsuranceCost the less expensive insurante plan) It is required that named constants are used for values that will not change in this application such as but nat limited to the charge per day for each of the cars
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