Question: How would I write a java calculator? Name the file SciCalc.java. The project must have a test file to test for functionality that is named

How would I write a java calculator?
Name the file SciCalc.java.
The project must have a test file to test for functionality that is named TestSciCalc.java
The program should accept PI (3.14159)"pi"and EULER (2.71828)"e"as numbers from the user and perform math operations.
The program should run continuously until the user exits it.
The program should round answers to 5decimal places.
***Required Methods ***
Variables:
PI contains 5decimal places (3.14159)and subsequently, mathematical operations can be performed with the value of "pi"(i.e.,PI x 5).
EULER contains 5decimal places (2.71828)and subsequently, mathematical operations can be performed with the value of "e"(i.e.,EULER 5)
Methods:
Addition ()-Provides the ability to add two numbers together and produce a sum
Multiplication()-Provides the ability to multiply two numbers together and produce a product
Subtraction()-Provides the ability to subtract two numbers together to produce a difference
Division()-Provides the ability to divide two numbers and produce a quotient
Square ()-Provides the ability to square an entered number
SqRt()-Provides the ability to determine the square root of an entered number
Sin()-Provides the ability to determine the sin value of an entered number
Cos()-Provides the ability to determine the cos value of an entered number
Tan ()-Provides the ability to determine the tan value of an entered number All

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!