0 views

Uploaded by Shakeel Ahmed

Calc program

- maths 1713 syllabus
- Limit of Function Theory_h
- Csecmultiplechoice Straight Lines
- 8
- 246 Gate 2012 Syllabus for Mechanical Engineering Me
- CE_WRNSK
- f3
- Numerical Methods 1
- 32-DerivativeRules
- Coordinate Geometry
- m2 u2 theory sheet1 lt
- Trig Rejasdklasj dklasdj kl
- Integral
- GATE ECE 1991 (Www.egate.ws)
- Chapter Test
- quarter 3 trig identities
- untitled document
- 3S_F.pdf
- 4EE Spring 2018
- Marking Scheme Paper2 Matematik Tambahan Mara 2010

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;

}

- maths 1713 syllabusUploaded byupadhayaymadan
- Limit of Function Theory_hUploaded bythinkiit
- Csecmultiplechoice Straight LinesUploaded byKeron Loney
- 8Uploaded byapi-373634605
- 246 Gate 2012 Syllabus for Mechanical Engineering MeUploaded bySrinivas Pratap
- CE_WRNSKUploaded byMunna Wanga Nemalili
- f3Uploaded bykakuzakumitroshoshi
- Numerical Methods 1Uploaded byGalaxhew
- 32-DerivativeRulesUploaded byapi-3738981
- Coordinate GeometryUploaded byUjjwal Thori
- m2 u2 theory sheet1 ltUploaded byapi-286106888
- Trig Rejasdklasj dklasdj klUploaded bysab754
- IntegralUploaded byMuthukumarasamy V
- GATE ECE 1991 (Www.egate.ws)Uploaded byAnonymous JnvCyu85
- Chapter TestUploaded byJE Aquino
- quarter 3 trig identitiesUploaded byapi-288610675
- untitled documentUploaded byapi-284725488
- 3S_F.pdfUploaded byFernando Luis Rodriguez Gutierrez
- 4EE Spring 2018Uploaded bymirsuhail22
- Marking Scheme Paper2 Matematik Tambahan Mara 2010Uploaded byAteef Hatifa
- MIT6_241JS11_cap07.pdfUploaded byJose Lorenzo Trujillo
- Derivative Exercises Graphs and TablesUploaded bySherrell Blankenship-Brown
- Exam 2014Uploaded bytantansn
- Practice ExamUploaded bydianefann
- EE-GATEUploaded byndthokare
- solutions_newmath CORRECTED.pdfUploaded byMohammad Tomaraei
- Algebra 2 Houghton Mifflin HarcourtUploaded bybaolanchi
- transkrip_14310073_20180815-135359(1).pdfUploaded byAvinda Widyasari
- hw2sol.pdfUploaded byGag Paf
- Ma 21Uploaded byDavid Murphy

- Hg.docxUploaded byShakeel Ahmed
- Imam-e-Zamana Scholarship Application Form 2018Uploaded byShakeel Ahmed
- DegreeAttestationChallanForm_2Uploaded byShakeel Ahmed
- HgUploaded byShakeel Ahmed
- TestsUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- 704_FAQsUploaded byqweer
- Manual FormUploaded byShakeel Ahmed
- HgUploaded byShakeel Ahmed
- hazard_descriptions (1).pdfUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- FormUploaded byShakeel Ahmed
- UBL.txtUploaded byShakeel Ahmed
- kmwalUploaded byShakeel Ahmed
- hbjkUploaded byShakeel Ahmed
- Vjndksmlxs nvsmkqlkjUploaded byShakeel Ahmed
- hbjk.docxUploaded byShakeel Ahmed
- 111Uploaded byShakeel Ahmed
- Gfuehwiwdjok298Uploaded byShakeel Ahmed
- hbjk.docxUploaded byShakeel Ahmed
- 987456123Uploaded byShakeel Ahmed
- 222Uploaded byShakeel Ahmed
- 546121120Uploaded byShakeel Ahmed
- fcgjhkljfgcgjkmlmjhcvbjnkmlvhbjnkm.docxUploaded byShakeel Ahmed
- 1235Uploaded byShakeel Ahmed
- Nb,Nm m,Mmnjkl;Poihjbnm,Uploaded byShakeel Ahmed
- VdbjhlwkojbhgejikojbfvncdxsmUploaded byShakeel Ahmed
- VkdhbjlUploaded byShakeel Ahmed
- BcdfejkUploaded byShakeel Ahmed

- Question & Answer Set-13Uploaded byHimanshu Sharma
- v1 javaUploaded byPrashant Jain
- MA2216 SummaryUploaded byKhor Shi-Jie
- ANSYS ASSIGNMENTUploaded byIzzah Yahya II
- Download VITEEE 2013 Solved Question Paper.pdfUploaded byAsad Ys Ansari
- Behavioral Model AnalysisUploaded bySuhalya Shree
- DOANE - STAT - Chap 017Uploaded byBG Monty 1
- Tut 2 2016Uploaded byZek Zhang
- Mathematical Model for Multi-Component Forces and Torque Determination in Friction Stir WeldingUploaded bysales_amcoengineering
- Shift and RotateUploaded byAdrian Ramos
- MeshingTechniques-TrainingWebinar-Abaqus612Uploaded byVaibhav Phadnis
- ANN2018-L4.pdfUploaded byAmartya Keshri
- Polar V800Uploaded byAdrián
- Ecor 2606 lab 8Uploaded byMike Rocque
- ME218 ManualUploaded byKethan Chauhan
- sa-ad-02.pdfUploaded byap44us
- REGRESI Least SquareUploaded byekoefendi
- Putnam 1975_What is 'Realism'Uploaded bylanfranconi
- CIT231 Ch12 HomeworkUploaded bydimmestbeauty
- UNIT-VI Product MetrixUploaded bySagar Kumbhare
- Mcq Thermal PhyUploaded byGajendra
- Financial Theory and Corporate Policy 3 EditionUploaded bykhanhchv
- Management 101Uploaded byNidhi
- 1-s2.0-S0929119917300020-mainUploaded byIrwan Adimas
- 4.pdfUploaded bynadeemq_0786
- MATH 533 Part C - Regression and Correlation AnalysisUploaded byCatherine Murphy
- EXTRACTION OF HUMAN BODIES FROM AN.docUploaded byRaghavendra Shetty
- Ho LogisticUploaded byVivek Banerjee
- Calculus ProblemUploaded byjennam93
- FME_Ch14Uploaded byJessica Tatiana Muñoz Ortiz