#include<iostream>
#include<math.h>
using namespace std ;
int main()
{
int opcion;
cout<<"MENU\n" ;
cout<<"1.V_angular\n" ;
cout<<"2.Periodo\n" ;
cout<<"3.R_angular\n" ;
cout<<"4.tiempo\n" ;
cout<<"5.T_multiplicacion\n" ;
cout<<"Ingrese la opcion:" ;cin>>opcion ;
switch(opcion)
{
case 1:
{
double k,m,w ;
cout<<"Ingrese la masa:";cin>>m;
for(k=15;k<=40;k=k+1)
{
w=sqrt(k/m);
cout<<w<<endl;
}//fin_for_k
} ;break ;
case 2:
{
double t,m,k,pi=3.1415 ;
cout<<"Ingrese la masa:";cin>>k;
for(m=10;m<=65.5;m=m+0.15)
{
t=2*pi*sqrt(m/k);
cout<<t<<endl;
}//fin_for_k
} ;break ;
case 3:
{
double f,k,m,pi=3.1415 ;
for(m=5;m<=40;m=m+2)
{
for(k=0.0125;k<=0.185;k=k+0.01)
{
f=(1/(2*pi))*sqrt(k/m);
cout<<f<<endl;
}//fin_for_k
}//fin_for_m
} ;break ;
case 4:
{
double Alpha, wf,wi,t;
cout<<"Ingrese tiempo:";cin>>t;
for(wi=15;wi<=60;wi=wi+0.5)
{
for(wf=25;wf<=100;wf=wf+2)
{
Alpha=(wf-wi)/t;
cout<<Alpha<<endl;
}//fin_for_wf
}//fin_for_wi
} ;break;
case 5:
{
int i,j ;
for(i=1;i<=12;i=i+1)
{
for(j=1;j<=12;j=j+1)
{
cout<<i<<"*"<<j<<"="<<i*j<<endl;
}//fin_for_i
}//fin_for_j
} ;break ;
}
system ("pause") ;
return 0;
}
No hay comentarios:
Publicar un comentario