And to get energy, you know that Potential energy=(mass)(gravity)(height).
Then you can substitute that into the formula to find power because you have the time (2 minutes).
Tumblr here.Power=Energy/Time
And I was specifically referring to gravity as acceleration.
edited 16th May '11 10:29:01 PM by Deboss
Fight smart, not fair.Yeah, watts is kg*m2/s3.
This essentially results in the power needed to travel at a specific velocity equal to the desired velocity multiplied by the resistance force, in this case weight of the object. This principle can be used horizontally for cars as well, provided you have the friction force.
Fight smart, not fair.I'm trying to solve this matrix problem, and I'm stuck.
Starts here:
| (3, 2, -1, 4) | (1, 3, -4, -7) | (-2) | (1, 3, -4, -7) | (-3) | (1, 3, -4, -7) | |
| (2, -1, 2, 10) | -> | (2, -1, 2, 10) | (0, -7, 10, 24) | (0, -7, 10, 24) | ||
| (1, 3, -4, -7) | (3, 2, -1, 4) | (3, 2, -1, 4) | (0, -6, 3, -12) | |||
| (1, 3, -4, -7) | ||||||
| (0, -6, 3, -12) | ||||||
| (0, -7, 10, 24) |
edited 18th May '11 12:31:36 PM by Wicked223
You can't even write racist abuse in excrement on somebody's car without the politically correct brigade jumping down your throat!Yeah, I should've posted that.
I'm trying to solve this system of linear equations, here:
3x + 2y -z = 4
2x - y + 2z = 10
x + 3y - 4z = -7
edited 18th May '11 3:56:14 PM by Wicked223
You can't even write racist abuse in excrement on somebody's car without the politically correct brigade jumping down your throat!Alternatively, you can keep using matrix operations like you have been and subtract the third row from the second one in order to generate a leading entry of 1 in the second row, thereby enabling you to zero out the second entries in the first and third rows.
I'm bad, and that's good. I will never be good, and that's not bad. There's no one I'd rather be than me.Running into troubles with a Java assignment, and I think I need to hire mercenaries for supporting fire because the troubles are just too quick for me to shoot by myself.
The program is supposed to test the validity of ISBN-10s entered by the user, and continue doing so until the user enters "q" or "Q"; for some reason, however, I can't get it to actually test validity, because if I do anything but immediately enter Q the console just does nothing.
This is the relevant part of main():
String s = user.nextLine().toUpperCase();
while(s.length() != 1 && s.charAt(0) != 'Q') {
boolean valid = true;
if(!hypInit(s)) {
System.out.println("INVALID: ISBN may not start or end with a hyphen.");
valid = false;
}
// (All other tests retain the same basic format.)
if(valid) {
if(!checkSum(shy)) System.out.println("INVALID: Checksum test error. At least one incorrect digit.");
else System.out.println("ISBN " + s + " is VALID.");
}
System.out.println("");
System.out.println("Enter next ISBN: ");
s = user.nextLine().toUpperCase();
}
ERROR: The current state of the world is unacceptable. Save anyway? YES/NO@ Noa:
I asked my sister about your question and she thinks this:
s.charAt(0) != 'Q'
Because it says charAt(0), isn't it only testing if the 1st char is or is not 'Q'? Shouldn't there be some counter like 'i' that starts at 0, and increases by 1 after every loop so you can test each individual char in the ISBN.
She also says she hasn't done JAVA in over a year so she isn't 100% sure. Doesn't hurt to try it though -shrug-
edited 20th May '11 8:17:05 PM by StolenByFaeries
"You've got your transmission and your live wire, but your circuit's dead." - MediaIt's supposed to do that. The actual testing is performed within the loop, which keeps prompting for a new entry until the user exits by typing 'q' (or 'Q'). As long as the entered sequence is not a String consisting of just that, the loop should continue. (Notice that String s is passed to hypInit() to be tested, which is supposed to return either true or false...)
:/ Tell her thanks for me, though.
ERROR: The current state of the world is unacceptable. Save anyway? YES/NO

You don't need acceleration for that, actually. Power is just the change of energy divided by the change of time.