Search:

Type: Posts; User: GMPoison

Search: Search took 0.18 seconds.

  1. Converting Military Time to Standard Time

    I have two classes. time_runner is used for testing my code.

    This is what I'm using to test my code:




    class time_runner
    {
  2. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    I've already taken it, I'm just wondering which are right and which are wrong so I can know for the future, I can't seem to find the answers in my notes.
  3. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    Of course the test was based on notes and materials, but so are all tests on all subjects. You're asking for choices. There's hundreds of "choices" you could make on the quiz, it's free response,...
  4. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    Again, there were no choices.
  5. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    I chose those answers because I thought they were the right ones at the time.

    --- Update ---

    There were no choices it was an online quiz. It told me I failed but didn't tell me which I got...
  6. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    7. Methods used to change variables are called _____.

    modifiers

    8. The _____ constructor has no parameters.

    public

    9. The keyword to call the constructor and build an...
  7. Replies
    13
    Views
    150

    Re: Help with a few simple questions

    I know it's not possible to copy text from an image, this is a screen shot I took of when I was reviewing my answers. The website said I failed, but didn't tell me which are wrong. Which look like...
  8. Replies
    13
    Views
    150

    Help with a few simple questions

    I researched and studied but I could not come up with the correct answers. I'm still having trouble finding them. If anyone would be kind enough to tell me which of these are wrong, and help me...
  9. Replies
    7
    Views
    234

    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?
  10. Replies
    7
    Views
    234

    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)...
  11. Replies
    7
    Views
    234

    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...
  12. Replies
    7
    Views
    234

    Simple Question about modular division

    The program is supposed to output the following:


    Please Enter the Cost of the Item:
    4.57
    Please Enter the Amount Paid:
    5.00
    Change Owed: 0.43
    Quarters: 1
    Dimes: 1
  13. Replies
    5
    Views
    146

    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...
  14. Replies
    5
    Views
    146

    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...
  15. Replies
    5
    Views
    146

    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,...
  16. 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(){
  17. 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...
  18. 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...
  19. Replies
    3
    Views
    308

    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
    ...
  20. Replies
    3
    Views
    308

    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...
  21. [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...
  22. Replies
    2
    Views
    151

    Re: Help with simple calculator

    Thank you, I knew it would be something stupid :P
  23. Replies
    2
    Views
    151

    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 23 of 23