Computers and Technology
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;

}

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:30, arguellesjavier15
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
image
Computers and Technology, 23.06.2019 07:30, jackie0833
Which option allows you to view slides on the full computer screen?
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, allison9746
Need ! will choose brainliest! discuss the role of abstraction in the history of computer software.
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, Alexaisokay1
In which of the following ways can using test-taking tips you? a. you can focus on the information that you need to study. b. you will see the answers to the test. c. you will study more. d. you will be less organized.
Answers: 1
Do you know the correct answer?
#include #include
#include
#include
using namespace std;

/* run t...

Questions in other subjects: