Answered step by step
Verified Expert Solution
Link Copied!

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
1. 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.
2. Read in the following
3. Name of customer
4. Car Type (Compact, Midsize, Sedan)
5. Number of week days
6. Number of weekend days (Weekends are Saturday, Sunday)
7. Amount customer paid for Rental
8. Use the standard national average for car rental to calculate the national cost of rental based on
car selection and days used by customer
9. Compare your result with what the customer paid and determine whether the rental was.
a. Expensive (the rental is expensive if it costs $5 more than national average)
b. Bargain (the rental is a bargain if it costs $5 less than national average)
c. Average (the rental is average if it is at the $5 range plus or minus from the national
average)Your screens should look like this
INPUT SCREEN EXAMPLE
Welcome to the Car rental calculator
Enter First Name: xxxxxxxx
image text in transcribed

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

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

More Books

Students also viewed these Databases questions