Professional Documents
Culture Documents
Name ID
Submitted to Kibrom.
#include<iostream>
#include<math.h>
void Wellcome();
void standard_operation();
void trigonometry_functions();
void logarithm_functions();
void exponential_functions();
void factorial_expression();
void hypotness_finding();
void unit_converter();
int main ()
int x,y;
do{
Wellcome();
cin>>x;
switch(x)
case 1:
standard_operation();
break;
case 2:
trigonometry_functions();
break;
case 3:
logarithm_functions();
break;
case 4:
exponential_functions();
break;
case 5:
factorial_expression();
break;
case 6:
hypotness_finding();
break;
case 7:
unit_converter();
break;
default:
cout<<"incorrect input";
break;
while(x!=8);
return 0;
void Wellcome()
cout<<"|================================================================|\n\n";
cout<<"|================================================================|\n\n";
cout<<"|================================================================|\n\n";
cout<<"press 8 to exit"<<endl;
void standard_operation()
int a,b;
char op;
cin>>a;
cin>>op;
cin>>b;
switch(op)
case '+':
cout<<"Addition = "<<a+b<<endl;
break;
case '-':
cout<<"Subtraction = "<<a-b<<endl;
break;
case '*':
cout<<"Multiplication = "<<a*b<<endl;
break;
case '/':
cout<<"Division = "<<a/b<<endl;
break;
case '%':
cout<<"Addition = "<<a%b<<endl;
break;
default:
cout<<"Wrong Input"<<endl;
void trigonometry_functions()
int x,op,PI=3.14159265;
cin>>op;
cin>>x;
//cin>>x;
switch(op)
case 1:
cout<<"Sin = "<<sin(x)<<endl;
break;
case 2:
cout<<"Cos = "<<cos(x)<<endl;
break;
case 3:
cout<<"Tan = "<<tan(x)<<endl;
break;
case 4:
cout<<"Sin = "<<asin(x)<<endl;
break;
case 5:
cout<<"Cos = "<<cos(x)<<endl;
break;
case 6:
cout<<"Tan = "<<tan(x)<<endl;
break;
case 7:
break;
case 8:
break;
case 9:
break;
default:
cout<<"Wrong Input"<<endl;
void logarithm_functions()
int a,op;
cin>>op;
cin>>a;
switch(op)
case 1:
cout<<"Log = "<<log(a)<<endl;
break;
case 2:
break;
default:
cout<<"Wrong Input"<<endl;
void exponential_functions()
{
int a,b,op,x;
cin>>op;
switch(op)
case 1:
cin>>a;
cin>>b;
cout<<"Exponent = "<<pow(a,b)<<endl;
break;
case 2:
cin>>x;
break;
case 3:
cin>>x;
case 4:
cin>>x;
break;
default:
cout<<"Wrong Input"<<endl;
void factorial_expression()
int f;
int n=1;
cin>>f;
for(int i=f;i>1;i--)
n=n*i;
void hypotness_finding()
{int x,y;
cin>>y;
void unit_converter()
int op;
float u,d;
cout<<"press 1 : Km to meter"<<endl;
cout<<"press 3 : km to mile"<<endl;
cout<<"press 6 : cm to meter"<<endl;
cin>>op;
cin>>d;
u=1.609344;
switch(op)
case 1:
break;
case 2:
cout<<d<<"meter is eqal to "<<(d/1000)<<"km"<<endl;
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
default:
cout<<"Wrong Input"<<endl;