NIM, nama, nilai tugas, nilai UAS, nilai UTS.
2. Jawaban :
#include
#include
#include
#include
void main()
{
int i, data;
char nama[10][20],nim[10][5];
float nilaitgs[10];
float nilaiuts[10];
float nilaiuas[10];
float hasil[10];
cout<<"Data Yang Akan Diinputkan : ";cin>>data;
for(i=0;i<<" Data Ke - "<<
cout<<" Nilai UTS : "; cin>>nilaiuts[i];
cout<<" Nilai UAS : "; cin>>nilaiuas[i];
hasil[i] = (nilaitgs[i] * 0.2) + (nilaiuts[i] * 0.3) + (nilaiuas[i] * 0.5);
cout<<" Nilai Akhir : "<
cout<<" A"<
cout<<" B"<
cout<<" C"<
cout<<" D"<
else
cout<<" E"<
}
cout<<"----------------------------------------------------------------------------"<
getch();
}
0 komentar:
Posting Komentar