Search:

Type: Posts; User: GMPoison

Search: Search took 0.17 seconds.

by GMPoison
Replies
7
Views
148

Re: Simple Question about modular division

Been messing with the thing for an hour still not getting it, but believe me I tried. Do you think you could really do me a favor this one time and tell me how I can fix this so I can understand?

by GMPoison
Replies
7
Views
148

Re: Simple Question about modular division

There's something wrong with this:

int quarters = (int) ((owed_final) / 25);
int dimes = (int) ((owed_final % 25) / 10);
int nickels = (int) ((owed_final % 25 % 10) / 5);
int pennies = (int)...

by GMPoison
Replies
7
Views
148

Re: Simple Question about modular division

I did a couple of tests and I know how it works, I just can't seem to implement my knowledge of it into this program. Further help would really be appreciated Norm. Thank you.

--- Update ---

I...

by GMPoison
Replies
7
Views
148

The program is supposed to output the following:

Please Enter the Cost of the Item:
4.57
5.00
Change Owed: 0.43
Quarters: 1
Dimes: 1
5. Thread: Help with simple applet.

by GMPoison
Replies
5
Views
90

Re: Help with simple applet.

Well, it will have the value of +1 since it's incrementing, right? and it's supposed to loop only if it's less than the height, so I would hope it would be less again. Sorry, really bad at while...
6. Thread: Help with simple applet.

by GMPoison
Replies
5
Views
90

Re: Help with simple applet.

Sorry I forgot a closing brace for the while. Only the first row is displayed, rather than first column. Still can't figure it out

while (row <= DISPLAY_WIDTH){ //while row is less than...
7. Thread: Help with simple applet.

by GMPoison
Replies
5
Views
90

Help with simple applet.

All the applet does is print a brick wall. I've got it made with using for loops, but now I'd like to get it done using while and do while loops, but I can't seem to get it working using while loops,...
8. Thread: Balloon Applet Help [Simple for non-novice]

by GMPoison
Replies
4
Views
78

Re: Balloon Applet Help [Simple for non-novice]

Fixed it, the problem was here:

public void doincreaseWidth(){

displayWidth += 25;
boundX = displayWidth - 25;

}
public void dodecreaseWidth(){
9. Thread: Balloon Applet Help [Simple for non-novice]

by GMPoison
Replies
4
Views
78

Re: Balloon Applet Help [Simple for non-novice]

Same program, different problem. Another thing I noticed is that when you increase or decrease the width or height, and you try and re center the balloon with the center button, the balloon is...
10. Thread: Balloon Applet Help [Simple for non-novice]

by GMPoison
Replies
4
Views
78

Balloon Applet Help [Simple for non-novice]

The applet allows you to move the balloon in a few directions, keeping the string in the bottom middle of the screen, which works fine. The problem started when I implimented the increase...
11. Thread: Simple Balloon Applet [Help!!!]

by GMPoison
Replies
3
Views
151

Re: Simple Balloon Applet [Help!!!]

I changed the South and east (the two that aren't working):

public void doSouth(){

if (startY+10 <= boundY-70)
startY+=10;
else
...
12. Thread: Simple Balloon Applet [Help!!!]

by GMPoison
Replies
3
Views
151

Simple Balloon Applet [Help!!!]

The bottom of the balloons string is supposed to stick to the bottom center (which it does). When you click a button, the balloon moves in that direction, simple. Problem is, for some reason, the...
13. Thread: [Easy] Finding area of triangle, rectangle, and circle.

by GMPoison
Replies
1
Views
156

[Easy] Finding area of triangle, rectangle, and circle.

User inputs information to find the area of one of the three shapes. It works fine, but I need it to round to the second decimal. For example when you enter 2.5 for the radius of the circle, it...
14. Thread: Help with simple calculator

by GMPoison
Replies
2
Views
82

Re: Help with simple calculator

Thank you, I knew it would be something stupid :P
15. Thread: Help with simple calculator

by GMPoison
Replies
2
Views
82

Help with simple calculator

First time using the forums and I got this assignment to make a calculator, which I have down and know how to do. It has to loop through asking for an Integer and Double 4 times, which I know how to...
Results 1 to 15 of 15