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, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Which set of steps will organize the data to only show foods with more than 100 calories and rank their sugar content from greatest to least?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
#include #include
#include
#include
using namespace std;

/* run t...
Questions
question
Mathematics, 02.11.2021 21:50
question
Physics, 02.11.2021 21:50
question
Mathematics, 02.11.2021 21:50
question
Physics, 02.11.2021 21:50
Questions on the website: 13722359