Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Java 1 . You are to write a simple program that asks the user for input, processes the input, and then outputs a result back
Java You are to write a simple program that asks the user for input, processes the input, and then outputs a result back to the user. Read in the following Name of customer Car Type Compact Midsize, Sedan Number of week days Number of weekend days Weekends are Saturday, Sunday Amount customer paid for Rental Use the standard national average for car rental to calculate the national cost of rental based on car selection and days used by customer Compare your result with what the customer paid and determine whether the rental was. a Expensive the rental is expensive if it costs $ more than national average b Bargain the rental is a bargain if it costs $ less than national average c Average the rental is average if it is at the $ range plus or minus from the national averageYour screens should look like this INPUT SCREEN EXAMPLE Welcome to the Car rental calculator Enter First Name:
Java
You are to write a simple program that asks the user for input, processes the input, and then
outputs a result back to the user.
Read in the following
Name of customer
Car Type Compact Midsize, Sedan
Number of week days
Number of weekend days Weekends are Saturday, Sunday
Amount customer paid for Rental
Use the standard national average for car rental to calculate the national cost of rental based on
car selection and days used by customer
Compare your result with what the customer paid and determine whether the rental was.
a Expensive the rental is expensive if it costs $ more than national average
b Bargain the rental is a bargain if it costs $ less than national average
c Average the rental is average if it is at the $ range plus or minus from the national
averageYour screens should look like this
INPUT SCREEN EXAMPLE
Welcome to the Car rental calculator
Enter First Name:
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