Challenge

Project

Scientific Calculator with the following operations

"+"-plus or addition

"-"-minus or subtration

"*"-multiply by

"/"-divide by

"^"-raised to the power of -x raised to the y

"Sqrt"-square root

"Nrt"-nth root

"log"-Logarithmic value

"logn"-Natural log

"sin"-Sine

"isin"-Inverse sine

"cos"-Cosine

"icos"-Inverse cosine

"tan"-Tangent

"itan"-Inverse tan

"stor"-place a number in memory for later use

"recall"-recover the number from memory for immediate use

"d2b"-Decimal to Binary number

"b2d"-Binary to Decimal number

"sip"-Calculations of monthly,quarterly and yearly SIP calculations for compunding investments.

the code is attached below

Code explanation: Calculator class is created with the extension of frame boolean verification is included to input the numbers, Calculator output method is created within a class a necessary inputs are given as button order and panel button and layout setup also created and the necessary actions for the input is given. In the panel operations for the calculator is assigned as addition,subtraction,multiplication,division,equal to,sin,cos and lograthmic functions.

According to the input given using a if else condition the functions is get displayed for the particular button panel input and the total is get displayed for the functionality.

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.