#include<iostream>
using namespace std;
main()
{char nom[20];
char asig[15];
int n,s=0,t=0,tot=0,cred,k=0,b=0,nota,part=0;
float ind=0;
cout<<"Digite el nomebre del Estudiantes:";
cin.getline(nom,sizeof(nom));
cout<<endl<<"Cantidad de asignaturas:";
cin>>n;
while(n>8||n<1)
{
cout<<"Error digita un numero entre 1y8:";
cin>>n;
};
for (int i=0;i<n;i++)
{fflush(stdin);
cout<<endl<<"Digite el nombre de Asignatura: ";
cin.getline(asig,sizeof(asig));
do{
cout<<"Credito de asignatura entre 1y6:";
cin>>cred;
}
while(cred<1||cred>6);
t=0;
s=0;
for (int a=1;a<4;a++)
{
cout<<"Digite la Nota #"<<a<<":";
cin>>nota;
while(nota<1||nota>30)
{
cout<<"Digite la Nota #"<<a<<"entre 1 a 30:";
cin>>nota;
}
s=s+nota;
}
cout<<"Digite participacion: ";
cin>>part;
while (part<1||part>10)
{
cout<<"Error Digite un valor entre 1 y 10: ";
cin>>part;
}
s+=part;
cout<<s<<"=>";
if (s>0&&s<60)
{
cout<<"F";
b=0;
}
if (s>59&&s<70)
{
cout<<"D";
b=1;
}
if (s>69&&s<80)
{
cout<<"C";
b=2;
}
if (s>79&&s<90)
{
cout<<"B";
b=3;
}
if (s>89&&s<101)
{
cout<<"A";
b=4;
}
t=b*cred;
k=k+t;
tot=tot+cred;
}
ind=(float)k/tot;
cout<<endl<<"El indice del Estudiante es: "<<ind<<endl;
system("pause");
return 0;
}
Harrah's Atlantic City Hotel and Casino - Mapyro
ResponderEliminarHarrah's Atlantic 안동 출장마사지 City Casino and Resort · 파주 출장샵 4 restaurants; 24-hour reception · 보령 출장샵 2 coffee shops 성남 출장안마 and 화성 출장마사지 an outdoor pool · Fitness center · Outlets near Harrah's