Question: Write a program that asks the user to enter a dollar amount representing the price they are willing to pay for the car of their
Write a program that asks the user to enter a dollar amount representing the price they are willing to pay for the car of their dreams. If that amount is greater than or equal to
$ they will get a discount of if it's greater than $ they will get a discount of and if it's greater than $ the discount will be Display the discounted
amount and congratulate the user on their purchase. A dialog will resemble:
How much are you willing to pay for the car of your dreams, in dollars?
Wow, with your discount of applied, you only owe $ Congrats!
Be sure to use variables for every value, choose the appropriate data types for the numeric values, use an if else if statement, and use both String and Scanner in your code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
