Programacion

Páginas: 2 (378 palabras) Publicado: 16 de octubre de 2014
Problema f)
#include
#include
int main()
{
int cant,ap,rep;
float porap,porrep;
printf("\n\tCantidad de alumnos calificados: ");
scanf("%d",&cant);
do
{
printf("\n\n\tIntroducecantidad de aprobados: ");
scanf("%d",&ap);
printf("\n\n\tIntroduce cantidad de reprobados: ");
scanf("%d",&rep);
if((ap+rep)>cant)
printf("\n\n\t\tERROR NO COINCIDEN CANTIDADES DEALUMNOS\n\n");
}while((ap+rep)>cant);
porap=(float)ap*100/cant;
porrep=(float)rep*100/cant;
printf("\n\n\n\t\t\tREPORTE\n\n\tPORCENTAJE APROBADOS: %.2f%%\n\tPORCENTAJE REPROBADOS:%.2f%%\n\n",porap,porrep);
system("pause");
}



Problema g)
#include
#include
int main()
{
float est,fin,porcrecimiento;
printf("\n\tIntroduce estatura inicial [mts]: ");
scanf("%f",&est);printf("\n\tIntroduce estatura final [mts]: ");
scanf("%f",&fin);
porcrecimiento=(fin-est)/est;
printf("\n\n\n\t\t\tREPORTE\n\n\t\tPorcentaje de crecimiento: %.2f%%\n\n",porcrecimiento);system("pause");
}
Problema b)
#include
#include
int main(){
int espd;
float espo,porciento;
printf("\n\n\n\t Ingrese el espacio total del disco duro \n\n\n\t");
scanf("%d",&espd);printf("\n\n\n\t Ingrese el espacio ocupado del disco duro \n\n\n\t");
scanf("%f",&espo);
porciento= (float)espo*100/espd;
printf("\n\n\n\t El disco duro esta ocupado en un porcentajede :%.2f \n\n\n\t",porciento);
system("pause");
}
Problema c)
#include
#include

int main(){
int pg;
float pgl,porciento;
printf("\n\n\n\t Ingrese el numero depaginas \n\n\n\t");
scanf("%d",&pg);
printf("\n\n\n\t Ingrese el numero de paginas leidas \n\n\n\t");
scanf("%f",&pgl);
porciento= (float)pgl*100/pg;
printf("\n\n\n\t Usted haavanzado al libro en un porcentaje de :%.2f \n\n\n\t",porciento);
system("pause");
}
Problema d)
#include
#include
int main(){
float dis,tiempo=2.3;
dis=9.8*tiempo;...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Programación
  • Programacion
  • Programacion
  • Programación
  • Programacion
  • Programacion
  • Programacion
  • Programacion

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS