Question: program has fewer than 1 0 lines not counting the class definition, main method, or braces. Write a program that asks the user to enter
program has fewer than lines not counting the class definition, main method, or braces.
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 $k they will get a discount of if it's greater than $k they will get a discount of and if it's greater than $k 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!
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
