Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi I need some help and guidance writing these instructions in java since I need something to compare with my current coding. Also please tell
Hi I need some help and guidance writing these instructions in java since I need something to compare with my current coding. Also please tell me what you did and why.
Write a java code for hotwire Rental Car. Prompt the user to pick a size, available sizes are Compact, Economy, Standard, Full Size, and ifthe user's choice is off the range, the program by default will consider Compact. The price per day is given in the following table: Compact Economy Standard Full Size $27.50 $49.20 $61.30 $78.90 Then ask the user if they want to buy insurance for the car. Insurance is $15 per day for the first 5 days and will be $12 per day after that. The program asks the user to enter the coupon code. There are only two valid coupons can be used in this project: code Fall2017 Halloween discount 10% 5% tput should look like the following sample nn. Program should get the number ofdays and calculate the final price for the user Sample run: 1 - Compact ($27.50) 2 Economy ($49.20) 3 Standard ($61.30) 4 - Full Size ($78.90) Enter the size: 4 Enter number of days you would like to rent a car: 8 Would you like to buy insurance for your car: (yeso) no Do you have a coupon to use: (yeso) yes Please enter the code for discount: Halloween Amount due at the counter: $599.64Step 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