Results 1 to 1 of 1

Thread: Calculator Program

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2006
    Posts
    2

    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
  •  



Click Here to Expand Forum to Full Width