viernes, 12 de abril de 2013

DEBER: INGRESAR 4 NUMEROS Y PRESENTAR EL MENOR DE ELLOS




DEBER DE PROGRAMACION

ESTUDIANTE: CRISTINA BENITEZ
DOCENTE: ING. ROBIN ZAMORA
FECHA: 12 DE ABRIL DEL 2013

ELABORE UN PROGRAMA QUE NOS PERMITA INGRESAR 4 NUMEROS POR TECLADO Y PRESENTAR EL MENOR   DE ELLOS.



#include<conio.h>
#include<iostream.h>
void main()
{
 clrscr();
 gotoxy(50,50);
 int a,b,c,d;
 cout<<"INGRESE EL PRIMER NUMERO;  ";   cin>>a;
 cout<<"INGRESE EL SEGUNDO NUMERO; ";   cin>>b;
 cout<<"INGRESE EL TERCER NUMERO;  ";   cin>>c;
 cout<<"INGRESE EL CUARTO NUMERO;  ";   cin>>d;
 if(a<b)
 {
  if(a<c)
  {
   if(a<d)
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<a;
   }
   else
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<d;
   }
  }
  else
  {
   if(c<d)
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<c;
   }
   else
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<d;
   }
  }
 }
 else
 {
  if(b<c)
  {
   if(b<d)
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<b;
   }
   else
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;  " <<d;
   }
  }
  else
  {
   if(c<d)
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;   " <<c;
   }
   else
   {
    gotoxy(35,20);
    cout<<"EL MENOR ES;   " <<d;
   }
  }
 }
 getch();
}

DEBER: INGRESAR 5 NUMEROS Y PRESENTAR EL MAYOR DE ELLOS.


DEBER DE PROGRAMACION

ESTUDIANTE: CRISTINA BENITEZ
DOCENTE: ING. ROBIN ZAMORA
FECHA: 12 DE ABRIL DEL 2013

ELABORE UN PROGRAMA QUE NOS PERMITA INGRESAR 5 NUMEROS POR TECLADO Y PRESENTAR EL MAYOR DE ELLOS.

#include<conio.h>
#include<iostream.h>
void main()
{
 clrscr();
 int a,b,c,d,e;
 cout<<"INGRESE EL PRIMER NUMERO  ;  ";   cin>>a;
 cout<<"INGRESE EL SEGUNDO NUMERO ;  ";   cin>>b;
 cout<<"INGRESE EL TERCER NUMERO  ;  ";   cin>>c;
 cout<<"INGRESE EL CUARTO NUMERO  ;  ";   cin>>d;
 cout<<"INGRESE EL QUINTO NUMERO  ;  ";   cin>>e;
 if(a>b)
 {
  if(a>c)
  {
   if(a>d)
   {
    if(a>e)
    {
     cout<<"EL MAYOR ES;   "  <<a;
    }
    else
    {
     cout<<"EL MAYOR ES;   "  <<e;
    }
   }
   else
   {
    if(d>e)
    {
     cout<<"EL MAYOR ES;   "  <<d;
    }
    else
    {
     cout<<"EL MAYOR ES;   "  <<e;
    }
   }
  }
  else
  {
   if(c>d)
   {
    cout<<"EL MAYOR ES;    "  <<c;
   }
   else
   {
    cout<<"EL MAYOR ES;    "  <<d;
   }
  }
 }
 else
 {
  if(b>c)
  {
   if(b>d)
   {
    if(b>e)
    {
     cout<<"EL MAYOR ES;  "  <<b;
    }
    else
    {
     cout<<"EL MAYOR ES;  "  <<e;
    }
   }
   else
   {
    if(d>e)
    {
     cout<<"EL MAYOR ES;  "  <<d;
    }
    else
    {
     cout<<"EL MAYOR ES;  "  <<e;
    }
   }
  }
  else
  {
   if(c>d)
   {
    cout<<"EL MAYOR ES;   "  <<c;
   }
   else
   {
    cout<<"EL MAYOR ES;   "  <<d;
   }
  }
 }
 getch();
}

miércoles, 10 de abril de 2013

DEBER: INGRESAR UNA NOTA FINAL


DEBER DE PROGRAMACION
Estudiante     : Cristina Elizabeth Benítez Orosco
Docente         : Ing. Robín Zamora
Año                : 2° Nivel de Informática “ B”
Modulo          : Programación Estructurada
Fecha              : 10 de Abril del 2013
ELABORE UN DIAGRAMA Y PROGRAMA QUE ME PERMITA INGRESAR LA NOTA FINAL DE UN ALUMNO Y ME PRESENTE SI EL ALUMNO APRUEBA O REPRUEBA  EL MODULO CONSIDERANDO QUE APRUEBAN LOS ALUMNOS QUE TIENE COMO NOTA MINIMA 7
#include<conio.h>
#include<iostream.h>
void main ()
{
clrscr();
floatnf;
cout<<"ingrese nota final:";
cin>> nf;
if (nf>=7)
{
gotoxy(35,20);
cout<< "aprueba";
}
else
{
gotoxy(35,20);
cout<< "reprueba");
}
getch();

DEBER: INGRESAR LA EDAD


DEBER DE PROGRAMACION
Estudiante     : Cristina Elizabeth Benítez Orosco
Docente         : Ing. Robín Zamora
Año                : 2° Nivel de Informática “B”
Modulo          : Programación Estructurada
Fecha              : 10 de Abril del 2013

ELABORE UN DIAGRAMA Y PROGRAMA QUE ME PERMITA INGRESAR LA EDAD DE UNA PERSONA Y ME PRESENTE UN MENSAJE QUE ME INDIQUE SI LA PERSONA ES MAYOR O MENOR DE EDAD.

#include<conio.h>                                                                                                                                                                                                                                                                                              
#include<iostream.h>
void main ( )
{

int edad;
clrscr ( );
cout<<"ingrese su edad:";
cin>> edad;
if (edad>=18)
{
gotoxy(35,20);
cout<<"mayor de edad";
}
else
{
gotoxy(35,20);
cout<<"menor de edad";
}
getch();
}

sábado, 6 de abril de 2013

CPP Nº 2


DEBER Nº 2
Nombre        : Cristina Benítez
Docente        : Ing. Robín Zamora
Fecha                        : 06 de Abril del 2013

REALIZAR UN PROGRAMA QUE NOS PERMITA INGRESAR LOS DATOS DE LA CEDULA.


#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
char no[100];char a[100];char l[100];char f[100]; char s[100]; char i[100];
cout<<"                            CEDULA DE CIUDADANIA   "<<endl<<endl<<endl;
cout<<"NUMERO DE CEDULA     : " ;cin>>no;
cout<<"NOMBRE Y APELLIDO    : " ;cin>>a;
cout<<"LUGAR DE NACIMENTO   : " ;cin>>l;
cout<<"FECHA DE NACIMIENTO  : " ;cin>>f;
cout<<"SEXO                 : " ;cin>>s;
cout<<"LUGAR DE INSCRIPCION : " ;cin>>i;
getch();
}

CCP Nº 1-


DEBER DE PROGRAMACION Nº 1
Nombre        : Cristina Benítez
Docente        : Ing. Robín Zamora
Fecha                        : 05 de Abril del 2013

REALIZAR UN PROGRAMA QUE NOS PERMITA VISUALIZAR UNA CARATULA

#include<conio.h>
#include<iostream.h>
void main()
{
  clrscr ();
  cout<<"                                   CARATULA"<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl ;
  cout<<"          NOMBRE: "cristina benitez orosco"<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl ;
  cout<<"          NIVEL:segundo nivel B"<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl ;
  cout<<"          MATERIA:PROGRAMACION ESTRUCTURADA"<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl ;
  cout<<"                                   A¤O LECTIVO"<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
  cout<<"                              2013     -       2014"<<endl<<endl;
  getch();
}







REALIZAR UN PROGRAMA QUE NOS PERMITA VISUALIZAR EL NOMBRE Y LA EDAD DE UNA PERSONA

#include<conio.h>                                                                                                                                                                                                                                                                                                  
#include<iostream.h>
void main()
{
  clrscr();
  char n [30];
  int an,e;
  cout<<"ingrese su nombre"<<endl<<endl<<endl<<endl<<endl;
  cin>>n;
  cout<<"ingrese su a¤o de nacimiento"<<endl<<endl<<endl<<endl<<endl;
  cin>>an;
  e=2013-an;
  cout<<"                       BIENVENIDO:"<<n<<endl<<endl<<endl ;
  cout<<"su edad es"<<endl;
  cout<<e<<endl;
  getch();
}