Sorry to sound like a pain but thats the problem I'm having. I honestly have no idea how to move on.
Type: Posts; User: JBtheIV
Sorry to sound like a pain but thats the problem I'm having. I honestly have no idea how to move on.
The while loop asks the user to enter a number for a product. Until they enter the integer 10 (the sentinel), it will keep asking them for a product number.
ex.
Please select an item from the...
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package orderfrommenu;
import java.util.Scanner;
/**
*
@javaiscool. Thanks man, I think I'm on to something.
I imported the code:
if (nNumber == 1){
nSum += GPOD_SHUFFLE;
}
else if (nNumber == 2){
nSum...
Sorry if I wasn't clear, but our Teacher hasn't taught us about array's yet. Therefore we should be required to figure this out without them.
Thus, thats why I need to figure out the right...
Thanks for the response. Our professor hasn't taught us about arrays so thats why it looks foreign to me.
/*
* To change this template, choose Tools | Templates
* and open the template in...
I don't know how to use arrays, or at the least, can't remember. Can you give an example?
Ok update!
I redid my coding and was able to fix the problem.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package orderfrommenu;
The customer can purchase as many items as they want. Each item corresponding to a number (1-9). The system will ask the user to enter another item until the user inputs 10. Then the total items...
Hello.
So far, I am in my 3rd week of Java programming and I've finally run into a bit of a problem. We were given an assignment of the following:
Scenario 1: Customer purchases all 9 items...