Forum: Java Feb 19th, 2005 |
| Replies: 7 Views: 17,443 thanks a bunch, i now know where I was going wrong..
thanks again |
Forum: Java Feb 19th, 2005 |
| Replies: 7 Views: 17,443 Ok, I am trying my best to understand..I am having a little trouble understanding the comparision process.
In the while loop how do I replace and store the correct integer. For example, if the... |
Forum: Java Feb 19th, 2005 |
| Replies: 7 Views: 17,443 Well, I think I need to ask for the input after the program enters the loop. Since I am having the program 'repeat' itself as much as the user decides, all comparisons of the numbers have to take... |
Forum: Java Feb 19th, 2005 |
| Replies: 7 Views: 17,443 Hi, I have set-up a while loop to iterate an amount specified by the user. However, is it possible to compare two numbers entered by a user inside the loop and then have the larger number replace the... |
Forum: Java Feb 13th, 2005 |
| Replies: 11 Views: 5,374 Thanks. I found out what the problem was. I had the division backwards. I corrected it by changing it to:
individualmpg = milesdriven / gallonsused;
Very simple mistake, that cause a big... |
Forum: Java Feb 12th, 2005 |
| Replies: 11 Views: 5,374 Well I spent a few hours on it and got it to compile and ask for the correct inputs. However, the program asks for miles driven and gallons used and it should display the miles per gallon. But it... |
Forum: Java Feb 11th, 2005 |
| Replies: 11 Views: 5,374 Sorry, I'm new to java. Let me make it a little more clear.
How can I have a user input 2 numbers. The first number entered will be divided by the first to find the average for those two numbers.... |
Forum: Java Feb 10th, 2005 |
| Replies: 11 Views: 5,374 Hi- I want to use a sentinel value (-1) to end the loop of a program after the user has entered all of their data. However, how can I output inbetween each instance of the loop? Then, at the end, how... |
Forum: Java Feb 4th, 2005 |
| Replies: 4 Views: 5,573 Thanks for writing back. After posting I continued working on it I think I figured it out. Maybe not as simply as you mention, but it's working..so far.
// determines the smallest entered... |
Forum: Java Feb 3rd, 2005 |
| Replies: 4 Views: 5,573 Hi, I have been trying to solve this problem for a while now. I wrote a program that analyzes 3 numbers entered by a user. All calculations are working fine. Now I am attempting to use 'if'... |