#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int opcion;
cout<<"menu:\n":
cout<<"1.-Velocidad_de_descarga:\n";
cout<<"2.-Tiempo_de_descarga:\n";
cout<<"3.-Caudal:\n";
cout<<"4.-Distancia_maxima:\n";
cout<<"Ingrese_la_opcion";cin>>opcion;
switch(opcion)
{
case 1:
{
double h,v;
h=3,g=9.8;
do
{
v=sqrt((2*g*h));
cout<<"Velocidad_de_descarga es:";<<v<<endl;
h=h+0.2;
}while(h<=5);
};break;
case 2:
{
double H,h;
h=6,g=9.8;
do
{
T=sqrt(2(H-h)/g);
cout<<"Tiempo_de_descarga es:";<<T<<endl;
h=h+0.4;
}while(h<=20);
};break;
case 3:
{
double Q;
V=15,A=26;
do
{
Q=(V*A);
cout<<"Caudal es:";<<Q<<endl;
h=h+0.4;
}while(h<=30);
};break;
case 4:
{
double R,H,h;
h=2, H=10;
do
{
R=2(sqrt(h(H-h));
cout<<"Distancia_maxima es:";<<R<<endl;
h=h+0.4;
}while(h<=10);
};break;
}
system("pause");
return 0;
}
No hay comentarios:
Publicar un comentario