CSCI 1015 PASS 5




CSCI 1015 PASS 5
Save your program as your last name and PASS5 example: JacksonPASS5. Your class name should be the same as your java file name
A mail-order house sells five products whose retail prices are as follows:
Product 1:
Product 2:
Product 3:
Product 4:
Product 5:
Write a program that reads in pairs of numbers as follows:
Product number Quantity Sold
Your program should incorporate the if-else-if statement or switch statement to determine the retail price for each product. It should calculate and display the total retail value of all products sold. Use a sentinel controlled loop to determine when the program should stop looping and display the final results. Create a bar chart to display the products sold as a row of asterisks. Each asterisk represent $100 of sales.
For example user input: Product Number: 1 Quantity Sold: 2 Product 1 Total: $200.00 Product Number: 2 Quantity Sold: 3 Product 2 Total: $600.00
Product 1
Product 2
Product 4
$ 1200.00
Product 5…..etc….
Product’s Sold Bar Chart
Product 1: **
Product 2: ******
Product 3: ************
Refer to the rubric provided with the syllabus for point allocation and distributions. Due September 28, 2016 .