Search:

Type: Posts; User: ggx7

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,175

    Re: rows and columns in the form of...

    Can anyone help me out? I've tried every possibly thing that I know of, I think I should at least have 3 for loops, played around with it, but still getting nowhere.
  2. Re: Situations for using while loops, do while loops, and for while loops.

    Hi Greg, could you please see my code located here: http://www.javaprogrammingforums.com/whats-wrong-my-code/36365-rows-columns-form.html

    I have to do something similar to this, and my code is...
  3. Replies
    5
    Views
    1,175

    Re: rows and columns in the form of...

    Hm.. I feel like I'm close but not quite there, I took a look at my notes and because I've written them poorly, they look like this

    for(column=n-row; column++), I think I'm getting closer to the...
  4. Replies
    5
    Views
    1,175

    rows and columns in the form of...

    Hello, I am making rows and columns in the form of a multiplication table, listed below is my code:


    package assignments;

    public class MultTable
    {
    public static void main (String []...
  5. Re: Hi expert kindly help me: List all the technical skills in Java ( to be a Programmer or Initial entry). Thanks Regards

    well, i would assume being a critical thinker and i'm sure the employer will give you some kind of test or ask you a question on how you would solve a problem. So obviously you would probably need...
  6. Replies
    7
    Views
    1,786

    Re: Question about math.pow and math.sqrt

    How about finding the cube root? I realize you will obviously need math.pow (basenumberhere, ____), because if you get the square root 0.5, would it be 0.25? because if you're taking the cube root,...
  7. Re: Situations for using while loops, do while loops, and for while loops.

    Thank you GregBrannon, not quite sure I know what you're talking about (ascii art, pyramid) Sorry. I'm still kind of new to forums so I don't really know how to navigate them that well. But...
  8. Replies
    7
    Views
    1,786

    Re: Question about math.pow and math.sqrt

    Thank you muganmbbo! So was I correct that if I DID want to find the square root WITH the math.pow, I could multiply the base number by 0.5 to find the square root yes? Because that does make sense...
  9. Replies
    7
    Views
    1,786

    Re: Question about math.pow and math.sqrt

    Thank you for replying, I apologize for not being clear. Is this a legitimate way to find the square root with math.pow? let's say we have x, therefore math.pow(x, 0.5) would find the square root...
  10. Re: Situations for using while loops, do while loops, and for while loops.

    Thanks, what about the FOR loop, isn't that useful as well? when you know the actual amount of times you need to check something? because of that simple part in the loop where you can easily...
  11. Situations for using while loops, do while loops, and for while loops.

    while loops are great for when you don't know how many times the program will run, right?

    For example, a program that asks the user to do some calculation, then asks him/her to press 0 to quit. ...
  12. Replies
    7
    Views
    1,786

    Question about math.pow and math.sqrt

    Ok, I get confused about math.pow, and how it has something to do with 0.5 or 1/2? but my teacher keeps saying be wary of integer by integer division. I was getting so nervous about the concept...
  13. Please see multiple questions I got wrong on an exam, what I did wrong?

    Here is a list of what I had gotten wrong on an exam:

    boolan a = false, b = true, c = true, d = false, e = true;

    1. System.out.println a != c;

    I had converted it to a==c, and had answered...
  14. conceptualize loops, I seem to think about them backwards.

    So when I took a test on while loops, I guess I think about them backwards, for instance I put && for conditions, when I should've put ||. I also put in the exiting condition in the while, when I...
  15. Replies
    4
    Views
    1,108

    Re: having issues with if else statement

    Ah, sorry for the late response, everything runs great, the booleans checkout and the statements match :) thank you again!

    Sorry, feel like you deserve to see the code, I was having trouble...
  16. Replies
    4
    Views
    1,108

    Re: having issues with if else statement

    Hello! Thank you for answering :)
    well so do you mean like this?
    if (overtime)
    {
    grossPay = rate * OVERTIMEHOURS + (hours - OVERTIMEHOURS)
    * (rate *...
  17. Replies
    4
    Views
    1,108

    having issues with if else statement

    This is a payroll assignment, and I don't know exactly why my if and else statements keep returning errors, I've tried adding curly braces inside of the if and the else parts, yet can't seem to get...
  18. Re: Payroll code runs fine, but if I input hours > 40, the cost to employer calculation goes wrong...

    Yeah, that's got to be a typo what the professor typed lol... it's weird because it's based on our first project.. and I got everything all of the specs right, and the output that the professor...
  19. Payroll code runs fine, but if I input hours > 40, the cost to employer calculation goes wrong...

    --- Update ---

    [/COLOR]Oh gosh, I think I fixed the first error, but now I'm receiving another error in my Net Pay print statement at the end.
    Here is what I'm supposed to receive:
    Net Pay:...
  20. Replies
    2
    Views
    859

    Re: Hey there! Beginner at Java

    Thank you for the warm welcome and sound advice! I think I do have the discipline to stick it out, it was more of a tell my hobbies kind of thing when I was talking about RPG's, but yes you are...
  21. Replies
    3
    Views
    1,300

    [SOLVED] Re: Payroll assignment

    Oh geez! Friggin A, can't believe I made a bonehead move like that >_< . Thanks alot! I think it works better now, here is my new code!

    package assignmentproject1;
    /* CHANGE (FINAL) VAR NAMES,...
  22. Replies
    3
    Views
    1,300

    [SOLVED] Payroll assignment

    Hi guys, I'm having some issues with this format specifier error, but I can't find the error. When I input integers, the code runs fine.
    In addition, when I input a number greater than 40 for the...
  23. Replies
    2
    Views
    859

    Hey there! Beginner at Java

    Hey guys, it's nice to meet you all! I am currently a beginner student in Java, and usually am here for assistance in homework. I personally love older console RPG games, more JRPG but still a fan...
Results 1 to 23 of 23