Quiz Struct of Array (C++)

#include<iostream>
#include<cstdlib>
#include<string>
#include<conio.h>
using namespace std;

struct data
{
char Nama[20];
char Jurusan[3];
int Nim;
char grade;
int quiz, tugas, uts, uas;
float rata;
};
main()
{

int i, maks;
cout<<” 17 Struct Of Array 17

“;
cout<<“Jumlah Mahasiswa : “; cin>>maks;
data mhs[maks]; // array struct
for(i=0;i<maks;i++)
{
cout<<”
Mahasiswa Ke-“<<i+1<<endl;
cout<<“——————————-
“<<endl;
cout<<“Nama : “; cin>>mhs[i].Nama;
cout<<“Jurusan [TI/SI/MI]: “; cin>>mhs[i].Jurusan;
cout<<“Nim : “; cin>>mhs[i].Nim;
cout<<“Nilai Tugas : “; cin>>mhs[i].tugas;
cout<<“Nilai Quiz : “; cin>>mhs[i].quiz;
cout<<“Nilai UTS : “; cin>>mhs[i].uts;
cout<<“Nilai UAS : “; cin>>mhs[i].uas;
cout<<endl;
mhs[i].rata=(0.1*mhs[i].tugas)+(0.2*mhs[i].quiz)+(0.3*mhs[i].uts)+(0.4*mhs[i].uas);
if (mhs[i].rata>=80) mhs[i].grade=’A’;
else if (mhs[i].rata>=70)mhs[i].grade=’B’;

else if (mhs[i].rata>=55) mhs[i].grade=’C’;

else if (mhs[i].rata>=40) mhs[i].grade=’D’;

else if (mhs[i].rata<=40) mhs[i].grade=’E’;
}
cout<<endl<<endl;
cout<<” Data Mahasiswa
“;
cout<<“———————————————————————
“;
cout<<“Nama Jurusan NIM Quiz Tugas UTS UAS N.Akhir Grade
“;
cout<<“———————————————————————
“;
for (i=0;i<maks;i++)
{
cout<<mhs[i].Nama<<” “<<mhs[i].Jurusan<<” “<<mhs[i].Nim<<” “<<mhs[i].quiz
<<” “<<mhs[i].tugas<<” “<<mhs[i].uts<<” “<<mhs[i].uas<<” “<<mhs[i].rata<<” “<<mhs[i].grade<<endl;
}
cout<<“———————————————————————
“;
cout<<“By sinakgondok.com”;
getch();
return 0;
}