ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Programacion práctica


Enviado por   •  13 de Octubre de 2016  •  Apuntes  •  1.171 Palabras (5 Páginas)  •  183 Visitas

Página 1 de 5

INSTITUTO POLITECNICO NACIONAL[pic 1][pic 2]

ESCUELA SUPERIOR DE INGENIERIA MECANICA Y ELÉCTRICA

INGENIERIA EN COMUNICACIONES Y ELECTRONICA

                          GRUPO: 1CV8

                               Equipo: 14

                         

                                  INTEGRANTES:

Camacho Hernández Diego Axel

Vargas Lopez Armando

                           Reporte de practicas

Profesor:  Garduño Medina Jorge Adrian

CONTENIDO

*INTRODUCCION

*PRACTICA 1

*PRACTICA 2

*PRACTICA 3

*PRACTICA 4

*PRACTICA 5

*PRACTICA 6

PRACTICA 7

*PRACTICA 8

*PRACTICA 9

*PRACTICA 10

*PRACTICA 11

*CONCLUSION

INTRODUCCION

En este reporte  el lector podrá observar las diferentes practicas en lenguaje  c  de programación  que se realizaron utilizando algunas funciones determinadas por las librerías como son “printf” ,“scanf” etc, y las que son relaizadas por el usuario asi como su clasificación y la sentencia “if” que es una toma de decisión en el programa.

CODIGOS

PRACTICA 1

*PORTADA

#include

#include

void portada()

{  textbackground(7);

  clrscr();

  gotoxy(45,8);

 int x=144;

 textcolor(4);

  printf("\"INSTITUTO POLIT%cCNICO NACIONAL\"",x,x);

  gotoxy(58,5);

  printf("\"ESIME\"");

  gotoxy(35,3);

  int y=144,c=141;

  printf("\"ESCUELA SUPERIOR DE INGENIER%cA M%cCANICA Y ELECTR%cCA\"",c,y,c);

  gotoxy(55,10);

 int t=141;

  printf("\"PRACT%cCA 1\"",t);

  gotoxy(55,12);

  printf("INTEGRANTES:");

   int p=162;

  gotoxy(50,14);

  printf("VARGAS L%cPEZ ARMANDO",p);

  gotoxy(47,16);

  int r=143;

  printf("CAMACHO HERN%cNDEZ DIEGO AXEL",r);

  gotoxy(40,19);

  int v=143;

  int o=165;

  printf("PROFESOR: GARDU%cO MEDINA JORGE ADRI%cN",o,v);

  gotoxy(54,22);

  printf("GRUPO: 1CV8");

  gotoxy(52,24);

  printf("TURNO:VESPERTINO");

  gotoxy(40,26);

  int b=162;

  printf("MATERIA: \"FUNDAMENTOS DE PROGRAMACI%cN\"",b);

  gotoxy(53,28);

  printf("EQUIPO: 14");

    getch();        

  ;

}

        PRACTICA 2

Porcentaje hombre y mujeres

#include

 #include

int main ()

 { double ph,pm; float h,m; textbackground(23); textcolor(16); clrscr();

gotoxy(19,2);

printf("PORCENTAJE DE HOMBRES Y MUJERES EN UN SALON");

gotoxy(30,5);

printf("HOMBRES:"); scanf("%f",& h);

gotoxy(30,7);

printf("MUJERES:"); scanf("%f",& m);

ph=(h*100)/(h+m);

 pm=(m*100)/(h+m);

gotoxy(30,9);

 printf("TOTAL: %f",h+m);

gotoxy(30,11);

printf("HOMBRES: %f",ph);

gotoxy(30,13);

printf("MUJERES: %f",pm);

getch();

}

Practica 3

Ecuaciones de Primer Grado con una Incognita

#include

#include

int main()

{

  float a1,a2,b1,b2,c1,c2,d,dx,dy;

  gotoxy(20,2);

  printf("ECUACION DE PRIMER GRADO CON 2 INCOGNITAS");

  gotoxy(30,5);

  printf("ingrese a1:"); scanf("%f",&a1);

  gotoxy(30,7);

  printf("ingrese b1:"); scanf("%f",&b1);

  gotoxy(30,9);

  printf("ingrese c1:"); scanf("%f",&c1);

  gotoxy(30,11);

  printf("ingrese a2:"); scanf("%f",&a2);

  gotoxy(30,13);

  printf("ingrese b2:"); scanf("%f",&b2);

  gotoxy(30,15);

  printf("ingrese c2:"); scanf("%f",&c2);

  d=(a1*b2)-(a2*b1);

  dx=(c1*b2)-(c2*b1);

  dy=(a1*c2)-(a2*c1);

  gotoxy(25,17);

  printf("EL VALOR DE X : %f",dx/d);

  gotoxy(25,19);

  printf("EL VALOR DE Y : %f",dy/d);

  getch();

}

Practica 4

*Regulador        

#include

#include

int main()

{

    float vs;

   float r2,_1adj=100.00;

    //gotoxy(25,2);

    printf("ENCUENTRA EL VALOR DE LA RESISTENCIA 1");

    //gotoxy(25,5);

    printf

    ("ingrese el valor de la resistencia 2 [ohms] : "); scanf("%f",&r2);

    //gotoxy(25,7);

    printf("ingrese el valor de el voltaje de salida :"); scanf("%f",&vs);

    //gotoxy(25,9);

    printf("el valor de la resistencia 2: %f",r2/(vs/(1.25*_1adj*r2))-1);

    getch();

}

Practica 5

*Ganancia

#include

 #include

int main()

...

Descargar como (para miembros actualizados)  txt (8.6 Kb)   pdf (165.8 Kb)   docx (61.3 Kb)  
Leer 4 páginas más »
Disponible sólo en Clubensayos.com