#include
#include
#include
#include
using namespace std;

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
struct Sinhvien {
string masv;
string tensv;
bool gioitinh;
double hocbong,tbcn;
int namsinh;
};
void input(int n){
do {
cout <<"MOI BAN NHAP SO SINH VIEN: ";
cin >>n;
if (n <= 0 || n >100)
cout <<"!BAN NHAP SAI! MOI BAN NHAP LAI";
}while (n <=0 || n > 100);
}
void menu() {
cout<<"\t";
cout< >x.gioitinh;
cout<<"4.Nhap nam sinh sinh vien ";cin>>x.namsinh;
cout<<"5.Nhap diem trung binh: ";cin>>x.tbcn;
}
void NhapDanhSach(Sinhvien a[],int n) {
for(int i=0;i =9.0) {
a[i].hocbong=8000000;
}
else if(a[i].tbcn>=8&&a[i].tbcn<9) {
a[i].hocbong=5000000;
}
else if(a[i].tbcn>=7&&a[i].tbcn<8)
a[i].hocbong=3000000;
else {
a[i].hocbong=0;
}
}
}
void SapXep(Sinhvien a[],int n) {
for(int i=0;i a[j].tbcn) {
Sinhvien temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
}
void Nu_Sinh_Diem_Cao_Nhat(Sinhvien a[],int n) {
for(int i=0;i a[j].tbcn)
cout<<"\t";
cout< > choose ;
if(choose > 6 );
{
system("cls");
cout<<"\n khong co cong viec nay, Ban hay nhap lai \n\n";
}
}while (choose >6 );
switch (choose)

{
case 1:
{
system("cls");

input(n);
goto nhaplai;
}

case 2:
{
system("cls");
NhapDanhSach(a,n);
goto nhaplai;

}

case 3:
{
system("cls");
cout<<"\n\t\t -------- DANH SACH SINH VIEN ------------- \n\n";

XuatDanhSach(a,n);
TinhDiem(a,n);
goto nhaplai;
}



case 4:
{
system("cls");
cout<<"\n\t\t -------- SAP XEP SINH VIEN THEO THU TU TAN DAN VE SO LUONG --------. \n\n";
SapXep(a,n);
goto nhaplai;

}
case 5:
{
system("cls");
cout<<"\n\t\t -------- SINH VIEN NU CO DIEM TRUNG BINH LON NHAT --------. \n\n";
Nu_Sinh_Diem_Cao_Nhat(a, n);
goto nhaplai;
}
case 0:
{
cout<<"\n\t\t\t\t* BAN DA KET THUC CHUONG TRINH *";

break;
}
default:
{
cout<<"Cong viec khong co trong danh muc . Vui long nhap lai!";
goto nhaplai;
}
}

getche();
return 0;

}



Answer :

Answer:

wait what

Explanation:

Answer:

bruuuu

Explanation: