discount chart should have three columns. The first column lists the items’ original price tag in CAD, and the second & third column provide the discounted prices after tax respectively in CAD and USD. All original price tags of the store are ended in .49 or .99. Your program should receive the maximum and minimum price tags, discount percentage (should be applied to original price tag), and CAD to USD exchange rate via keyboard entry. Develop you program based on the below sample results. Note that your program should check

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

You are asked to write a Java program making a discount promotion chart for a souvenir store in Niagaraon-the-Lake, Ontario. Your discount chart should have three columns. The first column lists the items’ original price tag in CAD, and the second & third column provide the discounted prices after tax respectively in CAD and USD. All original price tags of the store are ended in .49 or .99. Your program should receive the maximum and minimum price tags, discount percentage (should be applied to original price tag), and CAD to USD exchange rate via keyboard entry. Develop you program based on the below sample results.

Note that your program should check if the entries are valid values. In case of an invalid entry the program should ask the user to enter a value again as shown in the sample result. for rounding to 0.5 the round method of Math class in java.lang package might be helpful. As you may remember you do not need to import java.lang. you are only allowed to import the Scanner class from java.util package.

This program creates a discount chart for the store. HST+GST is accounted 13%.
All discount prices after tax are rounded to 0.5.
You should provide the store price range, and the most current CAD to USD exchange rate.
Enter the title of the discount chart.
Promotional Discount Chart
Please enter the minimum price tag. The price tag should be a positive value ending .49 or .99.
3.12
Please enter the minimum price tag. The price tag should be a positive value ending .49 or .99.
3.49
Please enter the maximum price tag. The price tag should be a positive value ending .49 or .99.
6.89
Please enter the maximum price tag. The price tag should be a positive value ending .49 or .99.
6.99
Please enter the discount percentage (a value between 0 to 100).
125
Please enter the discount percentage (a value between 0 to 100).
40
Please enter the most current CAD to USD exchange rate.
-1.25
Please enter the most current CAD to USD exchange rate.
0.79
Promotional Discount Chart
Original Price
After Discount
CAD
CAD
USD
3.49
2.5
2.0
3.99
2.5
2.0
4.49
3.0
2.5
4.99
3.5
3.0
5.49
3.5
3.0
5.99
4.0
3.0
6.49
4.5
3.5
6.99
4.5
3.5
Process finished with exit code 0
Transcribed Image Text:This program creates a discount chart for the store. HST+GST is accounted 13%. All discount prices after tax are rounded to 0.5. You should provide the store price range, and the most current CAD to USD exchange rate. Enter the title of the discount chart. Promotional Discount Chart Please enter the minimum price tag. The price tag should be a positive value ending .49 or .99. 3.12 Please enter the minimum price tag. The price tag should be a positive value ending .49 or .99. 3.49 Please enter the maximum price tag. The price tag should be a positive value ending .49 or .99. 6.89 Please enter the maximum price tag. The price tag should be a positive value ending .49 or .99. 6.99 Please enter the discount percentage (a value between 0 to 100). 125 Please enter the discount percentage (a value between 0 to 100). 40 Please enter the most current CAD to USD exchange rate. -1.25 Please enter the most current CAD to USD exchange rate. 0.79 Promotional Discount Chart Original Price After Discount CAD CAD USD 3.49 2.5 2.0 3.99 2.5 2.0 4.49 3.0 2.5 4.99 3.5 3.0 5.49 3.5 3.0 5.99 4.0 3.0 6.49 4.5 3.5 6.99 4.5 3.5 Process finished with exit code 0
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Types of Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT