Question: Write a Java program that allows the user to select a calculation function as described in the Required Methods section below. Name the file SciCalc.java.
Write a Java program that allows the user to select a calculation function as described in the "Required Methods" section below.
Name the file SciCalc.java.
The project must have a test file to test for functionality that is named TestSciCalc.java
The program should run continuously until the user exits it
All calculations return a value rounded to decimal places.
Required Methods
Variables:
PI contains decimal places and subsequently, mathematical operations can be performed with the value of piiePI x
EULER contains decimal places and subsequently, mathematical operations can be performed with the value of eieEULER
Methods:
Addition Provides the ability to add two numbers together and produce a sum
MultiplicationProvides the ability to multiply two numbers together and produce a product
SubtractionProvides the ability to subtract two numbers together to produce a difference
DivisionProvides the ability to divide two numbers and produce a quotient
Square Provides the ability to square an entered number
SqRtProvides the ability to determine the square root of an entered number
SinProvides the ability to determine the sin value of an entered number
CosProvides 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 calculations return a value rounded to decimal places.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
