Professional Documents
Culture Documents
SCIENTIFIC CALCULATOR
Batch No: MIP19CS18 Under the Guidance of
Mr.R.Sandeep
Assistant Professor, CSE
Mrs.P.M.Tulasi
Assistant Professor, CSE
ABSTRACT
•C++ program to make a scientific calculator.
Software requirements:
Operating system: Windows 7 or above
Processor : Intel Pentium or compatible, 1.6GHz
Compiler: GCC
IDE: Turbo C++
Language: C++
BLOCK DIAGRAM
Input
Calculator
Functioning Unit
Output
User
System Design
• Flow Chart .
• Implementation Details .
• Algorithm for Guass Jordon Elimination
Method .
IMPLEMENTATION
Power: Takes two numbers as inputs to the function and outputs the calculated exponent
value with respect to the base
Square: Takes one numeric value as input and outputs the square result of it
Sin: Takes one numeric value as input and outputs the Sine result of it
Cos: Takes one numeric value as input and outputs the Cosine result of it
Tan: Takes one numeric value as input and outputs the Tangential result of it
Log: Takes one numeric value as input and outputs the Log result of it
Base Log: Takes one numeric value as input and outputs the Base 10 Log result of it
Gauss Jordan: Takes number of equations and their coefficients as input and outputs the
eliminated Gauss-Jordan result of it
FLOWCHART
START
Enter
your
choice
No Yes
Do you
want to
YES continue
NO
Switch off calculator
STOP
A: Algorithm
1. User selects function to use by the
Scientific Calculator core
2. Then user submits input
3. Program calculates the result as output to
the user
4. User chooses to exit
5. Program ends
Gauss Jordan Method Algorithm:
1.Start
2.Read the order of the matrix ‘n’ and read the coefficients of the linear equations.
3.Do for k=1 to n
Do for l=k+1 to n+1
a[k][l] = a[k][l] / a[k][k]
End for l
Set a[k][k] = 1
Do for i=1 to n
if (i not equal to k) then,
Do for j=k+1 to n+1
a[i][j] = a[i][j] – (a[k][j] * a[i][k])
End for j
End for i
End for k
4.Do for m=1 to n
x[m] = a[m][n+1]
Display x[m]
End for m
5.Stop
CONCLUSION AND FUTURE SCOPE
[1] Morton Rosenstein, “Computing with the Scientific Calculator” in 1st Edition, 1986 .