Im doing this one for fun now. Thank you to all of you for helping me out with both my programs. This one has a problem. Cannot find symbol-class Writer
Type: Posts; User: pwngrammer
Im doing this one for fun now. Thank you to all of you for helping me out with both my programs. This one has a problem. Cannot find symbol-class Writer
that work but now it says cannot find symbol - method CalculateForce(double,double) for system.out.println("The Force is " + formula.CaclulateForce(a,b));
no. do i put that right before the code?
now for Scanner read=new Scanner(System.in); it says cannot find symbol - class Scanner. I'm really sorry for bothering you with all this. You are a really great guy for helping me this much. I hope...
now there is an error with the return first * second. it says "possible loss of precision"
';' expected. thats all it says
it still wont work the semi colon is there but it doesnt work
Sorry to bother again but when i try to compile it stops me at double a=0 and it says ";" expected so i added the semicolon but it still says the same thing. any ideas.
Thank You! Is that everything. I have tried studying out of class but the website feel so cluttered and its hard to understand but I'll keep trying. I greatly appreciate this!
public class Force extends Object
{
private double mass;
private double accel;
private double force;
public Force
{
mass=0;
accel=0;
force=1;
i just want him to put the code that is required to do the formula for F=ma. If you can please do it and notate it. This is my final project for programming class and i have just barely been getting...
i simply want a program in which it prompts you to enter the mass and the acceleration and then it returns the force. what is hard to understand about that?
"you can't have global variables defined within a function"
yeah i totally understood what that meant:cool: So is that all the code. I just put that all together and thats my code?
class Force{
public Force(double a, double b){
public int mass;
public int acceleration;//is that right?
}
}//end of class
savitch.In is the java code that can be exchaged for something else. I use Blujay and my computer is pregrammed to accept savitch.In i do not know the exact word. And about the class, that's where i...
aww forgot the savitch.in for the second input sorry.
public static Force readInput()
{
Double a,b,c;
System.out.println("Please input mass.);
a=SavitchIn.readLineDouble();
System.out.println("Please input acceleration");
Force f = new Force(a,b);...
Haha, I love how you ended that with Regards. Anyway, I know how to do it i just want to make sure that i get it right. If i put up the code would you help me with my mistakes?
thank you but i also need the code for the prompts to enter the numbers for mass and acceleration. thank you in avdance.
i need a simple physics formula. F=ma. Please create a program that has you input the mass and the acceleration and return the force. PLEASE i need this by monday. If you can please answer my other...
Can someone make a program that creates a simple 4 digit password for a text file, and notate what every line of code does.