PDA

Click to See Complete Forum and Search --> : Calculator Program


tdogg04
Nov 17th, 2006, 07:28 AM
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;
}

}