0 views

Uploaded by Shakeel Ahmed

Calc program

- 112-116
- 106099506 Riemann Zeta Function
- Legendre Polynomials
- Trigonometry_ How to Find Minimum-maximum Values Quickly
- Lectures Chapter 2C
- Amcat Question QUANTITATIVE ABILITY Papers-2. _ FresherLine - Jobs, Recruitment,Fresher _ Fresherline
- ApproxSolutions
- Casey's Theorem - Luis Gonzales
- Mapping by Analytic Functions Part I by Leonard Greenstone
- Book1
- Vivek Assignm New
- Trigonometry-1 JEE Main and Advanced.pdf
- NFEM.Ch25.pdf
- mirror_descent.pdf
- SPM AddMath2 Ans (Kedah)
- math 6
- grade 10 combinatorics 1 - google docs
- AOPS Problems Checkpoint, 03-02-15.pdf
- Limits Assignment
- Lecture 01

You are on page 1of 4

h>

#include<conio.h>

#include<windows.h>

#include<cctype>

#include<cmath>

using namespace std;

int main ()

{

char letter;

char letter1;

char letter2;

char letter3;

char letter4;

int a,b;

double a1,b1;

int result;

double result1;

cout<<"\n\n\n ***************** SCIENTIFIC CALCULATOR ****************** \n\n\n

";

do

{

cout<<"\t 1 : Arithmetic Operations \n";

cout<<"\t 2 : Trigonometric Functions \n";

cout<<"\t 3 : Logarithmic Functions \n";

cout<<"\t 4 : Power Functions \n";

cout<<"\t 5 : Exit... \n";

letter = getche();

switch(letter)

{

case '1':

{

cout<<"\n\n";

cout<<"\t1 : Addition \n";

cout<<"\t2 : Subtraction \n";

cout<<"\t3 : Multipilication \n";

cout<<"\t4 : Division \n\n";

letter1 = getche();

switch(letter1)

{

case '1':

{

cout<<"\n\nEnter first number...";

cin>>a;

cout<<"Enter an other number...";

cin>>b;

result=a+b;

cout<<"\n\nResult = "<<result<<endl;

system("pause");

break;

}

case '2':

{

cout<<"\n\nEnter first number...";

cin>>a;

cout<<"Enter an other number...";

cin>>b;

result=a-b;

cout<<"\n\nResult = "<<result<<endl;

system("pause");

break;

}

case '3':

{

cout<<"\n\nEnter first number...";

cin>>a;

cout<<"Enter an other number...";

cin>>b;

result=a*b;

cout<<"\n\nResult = "<<result<<endl;

system("pause");

break;

}

case '4':

{

cout<<"\n\nEnter first number...";

cin>>a;

cout<<"Enter an other number...";

cin>>b;

if(a!=0)

{

result=a/b;

cout<<"\n\nResult = "<<result<<endl;

system("pause");

}

break;

}

}// end of inner switch

break;

}// end of case 1 arithmatic operation

case '2':

{

cout<<"\n\n";

cout<<"\t1 : Sin function \n";

cout<<"\t2 : Cos function \n";

cout<<"\t3 : Tan function \n";

letter2=getche();

switch(letter2)

{

case '1':

{

cout<<"\n\n Enter a number...";

cin>>a1;

result1=(sin(a1));

cout<<"\n\nResult = "<<result1<<endl;

system("pause");

break;

}

case '2':

{

cout<<"\n\n Enter a number...";

cin>>a1;

result1=(cos(a1));

cout<<"\n\nResult = "<<result1<<endl;

system("pause");

break;

}

case '3':

{

cout<<"\n\n Enter a number...";

cin>>a1;

result1=(tan(a1));

cout<<"\n\nResult = "<<result1<<endl;

system("pause");

break;

}

}// inner switch

break;

}//inner case 2 trignomatic

case '3':

{

cout<<"\n\n";

cout<<"\t1 : Natural log\n";

cout<<"\t2 : log with base 10 \n";

letter3=getche();

switch(letter3)

{

case '1':

{

cout<<"\n\n Enter a number...";

cin>>a1;

result1=log(a1);

cout<<"\n\n Result = "<<result1<<endl;

system("pause");

break;

}

case '2':

{

cout<<"\n\n Enter a number...";

cin>>a1;

result1= log10(a1);

cout<<"\n\n Result = "<<result1<<endl;

system("pause");

break;

}

}// end of switch

break;

}// end of case 3 logrithmic

case '4':

{

system("cls");

cout<<"1) Press 1 for Power \n";

cout<<"2) Press 2 for Square root \n";

cout<<"Enter your choice....";

letter4=getche();

switch(letter4)

{

case '1':

{

cout<<"\n\nEnter a number...";

cin>>a1;

cout<<"Enter power...";

cin>>b1;

result1=pow(a1,b1);

cout<<"\n\nResult = "<<result1<<endl;

system("pause");

break;

}

case '2':

{

cout<<"\n\nEnter a number...";

cin>>a;

result1=sqrt(a);

cout<<"\n\nResult = "<<result1<<endl;

system("pause");

break;

}

}// end of switch

break;

}// end of case power function

}// outer switch

}while(letter != '5');

return 0;

}

- 112-116Uploaded byMonica Jones
- 106099506 Riemann Zeta FunctionUploaded byJuliano Deividy B. Santos
- Legendre PolynomialsUploaded bykrishna
- Trigonometry_ How to Find Minimum-maximum Values QuicklyUploaded byamitaich1991
- Lectures Chapter 2CUploaded byShivneet Kumar
- Amcat Question QUANTITATIVE ABILITY Papers-2. _ FresherLine - Jobs, Recruitment,Fresher _ FresherlineUploaded byPrashant Kumar Tiwari
- ApproxSolutionsUploaded byGopal Kondagunta
- Casey's Theorem - Luis GonzalesUploaded bymoka0687
- Mapping by Analytic Functions Part I by Leonard GreenstoneUploaded byshep666
- Vivek Assignm NewUploaded byprasobha
- Trigonometry-1 JEE Main and Advanced.pdfUploaded byNirmal yadav s channel
- SPM AddMath2 Ans (Kedah)Uploaded bySimPor
- NFEM.Ch25.pdfUploaded bystefan
- mirror_descent.pdfUploaded bySanjay Kumar
- math 6Uploaded byArwel Caisio
- AOPS Problems Checkpoint, 03-02-15.pdfUploaded byLucy Li
- Book1Uploaded byJiwo Prasetya Budihartono
- grade 10 combinatorics 1 - google docsUploaded byapi-279111923
- Limits AssignmentUploaded byUtkarsh Yadav
- Lecture 01Uploaded byTayyab Zafar
- hw13solnUploaded bypja752
- LimitsUploaded bydocstock2012
- JAWAPAN-SET1-2-3-4Uploaded byKhairul Abadi Puteh
- Numerical Methods (Read-Only)Uploaded bytperea
- 6sA03Uploaded byMuhammad Bilal Junaid
- Part 3Uploaded byBoonme Chinnaboon
- G-rard Et Al-2000-Communications on Pure and Applied MathematicsUploaded byfrost6210
- Exercise 3Uploaded byashu mishra
- Math(T) Paper 1 Trial 2012(Acs Ipoh)Uploaded bySathia Kdms
- 1894217-AQA-MPC2-QP-JAN12.pdfUploaded byastargroup

- 704_FAQsUploaded byqweer
- HgUploaded byShakeel Ahmed
- TestsUploaded byShakeel Ahmed
- Manual FormUploaded byShakeel Ahmed
- Uniz Under CGSUploaded byShakeel Ahmed
- Jamal CVUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- DegreeAttestationChallanForm_2Uploaded byShakeel Ahmed
- hazard_descriptions (1).pdfUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- Imam-e-Zamana Scholarship Application Form 2018Uploaded byShakeel Ahmed
- kmwalUploaded byShakeel Ahmed
- BcdfejkUploaded byShakeel Ahmed
- Vjndksmlxs nvsmkqlkjUploaded byShakeel Ahmed
- Ghulam RasoolUploaded byShakeel Ahmed
- National Drilling Company Exam and AnswerUploaded byShakeel Ahmed
- 1Uploaded byShakeel Ahmed
- PETE110_CHAPTER7Uploaded byjoseph_thana20016381
- Ghulam RasoolUploaded byShakeel Ahmed
- CHAPTER 4 Lecture [Compatibility Mode]Uploaded byShakeel Ahmed
- Test-1.pdfUploaded byShakeel Ahmed
- Annex-IIIUploaded byShakeel Ahmed
- Application Form Faculty PositionsUploaded byShakeel Ahmed
- Foi Ugynoklista 2018 19Uploaded byShakeel Ahmed
- 236795189-IGC1-IGC2-Questions-s.pdfUploaded byShakeel Ahmed
- Linked InUploaded byShakeel Ahmed
- sohalUploaded byShakeel Ahmed
- All FOrm.txtUploaded byShakeel Ahmed

- 05522228Uploaded byNazi Sweet
- Bit ManipulationUploaded byKiran Kumar
- Bolt Tighting SequenceUploaded byAnkur Sahu
- G-170-R0 Horizontal Vessel - Foundation Metric Sheets_2Uploaded bymicktunx
- Herb Garden DesignUploaded byManuelBrk
- A Comprehensive Phylogenetic Analysis of Termites (Isoptera) Illuminates Key Aspects of Their Evolutionary BiologyUploaded byAndré Oliveira
- Theory of metal cutting-Module 1Uploaded byrejeesh_rajendran
- reliability program planningUploaded byArun Raj
- Difference Between General Nd Linear PerturbationUploaded byalenio003
- Assignment 5Uploaded byXu Ka
- Linked ListsUploaded byDon Velasco
- Math TriviasUploaded byRanz Louie Ricasa
- Predictive value of lactate in unselected critically ill patients: an analysis using fractional polynomialsUploaded byJess
- statnotes.pdfUploaded bySiva Nantham
- chapter 5Uploaded byapi-268597715
- Astrorex D22 catlougeUploaded byManisankar Dhabal
- Course Notes on Complex Numbers Teachers Notes [1]Uploaded byKevin Quach
- Landau - Movement Out of ControlUploaded bywadiwan
- Apple Script Language GuideUploaded byEricJean
- grade 7 7 3 l18Uploaded byapi-296039056
- bernhofen-lect2-2Uploaded bymajka077677
- Energy System in Steady StateUploaded bySkay Paonam
- _Bab 5 Peluang.pptUploaded byAmal Budiman
- K-2413 (Computer Science and Application) (Paper III)Uploaded bySunitha Kishore
- Go Lap DatabaseUploaded byvipin.s.tomar
- DesUploaded byAjay Giri
- Cfd-ivings and GantUploaded bygirish19
- Adapt-felt 2011 User ManualUploaded bymhan
- Recursion in C,C++Uploaded bysabarisri
- Probability Students CopyUploaded byAnonymous UqsAfi