Challenge

Project

Response :

Created a Scientific calculator with OOPS concept,

All the functions are created with Different Packages - scientificCalculator, SIP, CalHistory - Hence Encapsulation is done in different packages

Main Class - mainCal is the "Main" class and the datas are extended to Basicfunction, Sceintificfuntion

with handling user defined exceptions, SIP package is created with inferface class with overriding and implementing QuaterlySIP & YearlySIP.

StorRecall - class is created with constuctors and creating an array which gets the input from user and recalls the same with recall function.

Calhistory class is created to record the calculation history.

OPPS concepts adopted is provided in the comments in code with Infinte Loop

Output:

Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
1
Enter Your Choice
1.Addition
2.Substraction
3.Multiplication
4.Division
5.Raise to the powerof
6.Square Root
7.nth Root

1
Enter the number 1st Number :
45
Enter the number 2nd Number :
23
Addition Value : 68.0
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
1
Enter Your Choice
1.Addition
2.Substraction
3.Multiplication
4.Division
5.Raise to the powerof
6.Square Root
7.nth Root

4
Enter the number 1st Number :
1
Enter the number 2nd Number :
2
Division Value : 0.5
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
2
1.Lograthimic
2.NaturaLog
3.Sine
4.Inverse Sine
5.Cosine
6.Inverse Cosine
7.Tangent
8.Inverse Tangent

1
Enter the number x for Logrithimic value :
-1
ExceptionHandled, Enter a non-negative value
Lograthimic Value : 0.0
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
2
1.Lograthimic
2.NaturaLog
3.Sine
4.Inverse Sine
5.Cosine
6.Inverse Cosine
7.Tangent
8.Inverse Tangent

2
Enter the number x for Natural Logrithimic value :
1
Natural Log Value : 0.6931471805599453
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
2
1.Lograthimic
2.NaturaLog
3.Sine
4.Inverse Sine
5.Cosine
6.Inverse Cosine
7.Tangent
8.Inverse Tangent

6
Enter the number x for Inverse Cosine value :
1
Inverse Cosine : 0.0
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
3
Enter the Decimal number to conevert to Binary :
17
Decimal to Binary : 10001
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
4
Enter the Binary number to conevert to Decimal :
10001
Binary to Decimal : 17
Writing done
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
5
Select which SIP Required
1.Monthly SIP
2.Quaterley SIP
3.Yearly SIP

1
Enter the monthly SIP Amount
1000
Enter the Rate Of Intrest
12
Enter the Number of Years
10
The total for Amount in SIP for Monthly : 3300.3868945736685
The Intrest for monthly is : 2300.3868945736685
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall
6
Enter 5 Numbers to store in Memory :
1
Enter 5 Numbers to store in Memory :
2
Enter 5 Numbers to store in Memory :
3
Enter 5 Numbers to store in Memory :
4
Enter 5 Numbers to store in Memory :
5
The Recall Numbers are :
1
2
3
4
5
Select the type of calculation you prefer :
1.Basic Calculation
2.Scientific Calculation
3.Decimal to Binary
4.Binary to Decilmal
5.SIP
6.Stor & Recall

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.