Answered step by step
Verified Expert Solution
Link Copied!

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.image text in transcribed

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.64

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

Discuss all branches of science

Answered: 1 week ago