[SOLVED] CSCI 1015 PASS 5

24.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (4 votes)

1
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:
$100.00
Product 2:
$200.00
Product 3:
$300.00
Product 4:
$400.00
Product 5:
$1000.00
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
$200.00
Product 2
$600.00
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 .

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.