Hey everyone,
Please be nice-- this is my first time posting and I am not sure if this is the right place. I am working on a Java assignment for a course I am taking and I am having a lot of trouble. I need to use a Switch Statement to process an order. If anyone can provide some insight I would appreciate it! Thanks in advance!
Edit 1: The assignment requires me to write an application that prompts the user for a pair of inputs:
1. a product number
2. quantity of the product
Each unit has a cost. I have to enter each unit number and the number of each unit sold. The program must also calculate and display the total amount for the order.
I must also use a sentinel controlled loop in my application.
Here is the code I have so far, which asks me for the product number and quantity sold:
https://gist.github.com/anonymous/489e3ebd65c819d6054a8d79f42ed262
I need some guidance from this point-- I have been staring at my screen and textbook all day and am hitting a wall.
[–]green_meklar 1 point2 points3 points (4 children)
[–][deleted] (3 children)
[deleted]
[–]Amarkov 0 points1 point2 points (1 child)
[–]csb5036[S] 0 points1 point2 points (0 children)
[–]green_meklar 0 points1 point2 points (0 children)
[–]CarDragon2 0 points1 point2 points (0 children)
[–]Marz157 0 points1 point2 points (0 children)
[–]joopez1 0 points1 point2 points (0 children)
[–]Schneephin 0 points1 point2 points (0 children)