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.
Type: Posts; User: ggx7
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.
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...
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...
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 []...
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...
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,...
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...
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...
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...
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...
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. ...
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...
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...
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...
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...
Hello! Thank you for answering :)
well so do you mean like this?
if (overtime)
{
grossPay = rate * OVERTIMEHOURS + (hours - OVERTIMEHOURS)
* (rate *...
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...
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...
--- 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:...
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...
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,...
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...
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...