(Solved) : Final Exam Version 1 Spring 2017 2018 M 2 5 120 Pts Rite Program Prompts User Enter Origin Q29708884 . . .
JavaFinal Exam -version 1 Spring 2017-2018 m 2/5 120 pts rite a program that prompts the user to enter the original price of an airplane ticket and the age of the customer in years. The program should calculate and display the discount amount, the tax amount and the final price of the ticket according to the following: -A 70% discount should be applied for babies who are 2 years old or less. A 30% discount should be applied for those who are 65 years old or above. -10% tax on the discounted price is to be added to the final price. Sample Run1: Enter the original price of the ticket in dollars: 1000 Enter the age of the customer in years: 23 The discount amount is: $0.0 The tax amount is: $100.0 Final Price: $1100.0 Sample Run2 Enter the original price of the ticket in dollars: 1000 Enter the age of the customer in years: 65 The discount amount is: $300.0 The tax amount is: $70.0 Final Price: $770.0 Show transcribed image text
Expert Answer
Answer to Final Exam Version 1 Spring 2017 2018 M 2 5 120 Pts Rite Program Prompts User Enter Origin Q29708884 . . .
OR