subject
Computers and Technology, 21.12.2021 01:00 kidlol

#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].tb cn<9) {
a[i].hocbong=5000000;
}
else if(a[i].tbcn>=7&&a[i].tb cn<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;

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
Ineed a good science fair name i’m doing a homemade water filter and i have no idea what the title should be plz
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
You know the right answer?
#include #include
#include
#include
using namespace std;

/* run t...
Questions
question
Mathematics, 18.11.2020 23:40
question
Business, 18.11.2020 23:40
question
Mathematics, 18.11.2020 23:40
question
Arts, 18.11.2020 23:40
Questions on the website: 13722360