Challenge

Project

Created Class Calculator
object is created for choice class
Choice class is created and which extends the operation class here inheritance concept is used
extend keyword is used which indicates child class(choice) inherits from parent class (operation)
for nth root and logvalue used the concept of run time polymorphism which is acheived by using the concept of method overriding
overriding means sub class has same method as declared in parent class
Interface is used for acheiving abstraction
Operation class implements defination (where interface is used)
Created the file Calculationhistory.txt and it stores the result
It Save all the inputs, calculations and results in a file .
It should run on an infinite loop -for add ( ) it will run infinite time
It takes inputs from the user for any operation based on the choices (switch is used for this) should select based on the operation number on the list displayed to them.

Find the attached file for project

zip will have the entire code

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.