|
-
Nov 17th, 2006, 08:28 AM
#1
Thread Starter
New Member
Calculator Program
This is my code for the Calculator program, I need help organizing it before Monday; please help. so that it follows the program directions.
// Thomas Wilson
// Calculator
import java.util.*;
public class Calculator
{
Calculator math = new Calculator();
math.exec();
double total, num, num2;
String operations;
instructs();
operations(num, string(+, -), num2));
while (num = 1)
operations(+, -, /, *, =);
add = "+".nextdouble;
if (=)
{
int = 0
}
else
{
System.out.println("Please enter second number");
num2 = scan.nextdouble;
}
}
Last edited by tdogg04; Nov 17th, 2006 at 08:29 AM.
Reason: Forgot some words
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|