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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education