Jump to content

Help in a calculator please!

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Ayannie

Ayannie

    Newbie

  • Members
  • Pip
  • 1 posts
Hi.. I have a project to do.. but i dont know how to start it..
Basicly i have to make a scientific calculator...
Can anyone help me please? :c-smirk:

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
Start by creating a calculation class. List down all the functions you wish your calculator can do as functions:

public class Calculate{

  public double sum(double value1, double value2){

     return value1+value2;

  }


  public double divide(double divident, double divisor){

     return divident/divisor;

  }

 .... +, -, *, /, ^, sqrt, sin, cos, tan, mod, log...

}


Do you have to make a Gui?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users