Programa de Hidrodinamica C++
Programa de Hidrodinamica C++
Programa de Hidrodinamica C++
h>
#include<stdlib.h>
#include<conio.h>
#include<math.h>
#define pi 3.1416
main()
{
int i;
gotoxy(25,5);
printf("INSTITUTO POLITECNICO NACIONAL\n");
gotoxy(25,9);
cprintf("***** ***** * * * *****");
gotoxy(25,10);
cprintf("* * * * * *");
gotoxy(25,11);
cprintf("* * * * * * *");
gotoxy(25,12);
cprintf("*** ***** * * * ***");
gotoxy(25,13);
cprintf("* * * * * *");
gotoxy(25,14);
cprintf("* * * * * *");
gotoxy(25,15);
cprintf("***** ***** * * * *****");
gotoxy(30,18);
printf("Ingenieria Mecanica");
gotoxy(26,20);
printf("Fundamentos de Programacion");
getch();
clrscr();
gotoxy(25,3);
printf("FUNDAMENTOS DE PROGRAMACION");
gotoxy(22,6);
printf("PROFESOR : ALEJANDRO MALAMOCO GOMEZ");
gotoxy(21,10);
printf("ALUMNO: JUAN DANIEL MARTINEZ IGNACIO");
gotoxy(33,14);
printf("GRUPO: 1MM3");
gotoxy(33,18);
printf(" PROGRAMA");
gotoxy(28,22);
printf(" *MOVIMIENTO CIRCULAR*");
getch ();
clrscr();
do
{
printf("\n ELIJA EL CALCULO A REALIZAR");
printf("\n 1. GASTO");
printf("\n 2. VOLUMEN");
printf("\n 3. TIEMPO");
printf("\n 4. DIAMETRO");
printf("\n 5. VELOCIDAD EN EL ESTRECHAMIENTO");
printf("\n 6. VELOCIDAD DE UN LIQUIDO POR UN ORIFICIO");
printf("\n 7. VELOCIDAD DE AGUA");
printf("\n 8. FLUJO");
scanf("%d",&opc);
clrscr();
switch(opc)
{
case 1: //GASTO//
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}
case 2:
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}
}
break;
case 2: //VOLUMEN//
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}
case 3: //TIEMPO//
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}
case 4: //DIAMETRO//
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}
case 8: //FLUJO//
for(i=1; i<=80; i++)
{
gotoxy(i,1);
printf("*");
//delay(10)
}