#include<iostream>
#include<math.h>
using namespace std ;
int main()
{
int opcion;
cout<<"MENU\n" ;
cout<<"1.tabla de multiplicar\n" ;
cout<<"2.aceleracion angular\n" ;
cout<<"3.tiempo\n" ;
cout<<"4.altura\n" ;
cout<<"5.equilibrio\n" ;
cout<<"Ingrese una opcion:" ;cin>>opcion ;
switch(opcion)
{
case 1:
{
int i,j ;
i=1;
j=1;
do
{
do
{
cout<<i<<"*"<<j<<"="<<i*j<<endl;
j=j+1;
}while(j<=12);
i=i+1;
j=1;
}while(i<=12);
} ;break ;
case 2:
{
double a,wf,wi,t;
wi=10;
cout<<"Ingrese el tiempo:";cin>>t;
cout<<"Ingrese la velocidad agular final:";cin>>wf;
do
{
a=wf-wi/t;
cout<<a<<endl;
wi=wi+10;
}while(wi<=80);
};break;
case 3:
{
int D,vi, g=9.81 , t ;
cout<<"Ingrese vi:";cin>>vi;
do
{
D=vi*2;
t=D/g;
cout<<t<<endl;
vi=vi+8;
}while(vi<=50);
};break;
case 4:
{
int f, g=9.81;
double h;
f=5;
cout<<"Ingrese el valor f:";cin>>f;
do
{
h=pow(f,2)/g;
cout<<h<<endl;
f=f+10;
}while(f<=70);
};break;
case 5:
{
double n,r,w,t,theta,pi=3.1415;
theta=10;
w=50;
do
{
cout<<"para theta:"<<theta<<endl;
do
{
r=(2*pi*theta)/360;
t=w/cos(r);
n=t*sin(r);
cout<<n<<endl;
w=w+10;
}while(w<=100);
theta=theta+5;
w=50;
}while(theta<=45);
} ;break ;
//fin switch;
} ;
system ("pause") ;
return 0;
}
No hay comentarios:
Publicar un comentario