Sydney Naidoo

Greenhorn
+ Follow
since Mar 26, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sydney Naidoo

Thank you for directing to the correct forumn.
Can someone help with correcting or enhancing the code for me.
18 years ago
Hi
I am a student learning java
This is what i am required to do
A company sells five products Product 1, $2.98; product 2, $4.50;
product 3, $9.98; product 4, $4.49 and product 5, $6.87. Write an application that reads a series of pairs of numbers as follows:
a) product number
b) quantity sold
use a 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

Here is my code
am i on the right track





[edit: PMc added code tags and fiddled with spacing]
[ March 27, 2006: Message edited by: Pauline McNamara ]
18 years ago