Viết chương trình nhập vào điểm các môn toán , tin, anh. Tính và thông báo ra màn hình điểm trung bình 3 môn và dựa vào điểm trung bình hãy xếp loại cho học sinh đó ( Biết rằng học sinh giỏi nếu điểm tất cả các môn đều trên 6,5 và điểm trung bình trên 8, học sinh khá nếu điểm các môn trên 5 và điểm trung bình trên 6,5, còn lại là học sinh trung bình) (C++)
#include <bits/stdc++.h>
using namespace std;
double a,b,c,tb;
int main()
{
cin>>a>>b>>c;
tb=(a+b+c)/3;
cout<<fixed<<setprecision(1)<<tb<<endl;
if (tb>=8) cout<<"Gioi";
else if ((6.5<=tb) and (tb<8)) cout<<"Kha";
else if ((5<=tb) and (tb<=6.5)) cout<<"Trung Binh";
else cout<<"Chua dat";
return 0;
}
Viết chương trình nhập từ bàn phím điểm toán lí hóa của 1 học sinh, tính điểm trung bình 3 môn đó. Dựa vào điểm trung bình xếp loại học lực và đưa ra màn hình. Đưa ra màn hình điểm thấp ,cao nhất, điểm trung bình
Cần gấp ạ giúp em với
E cảm ơn!
Viết chương trình tính điểm trung bình môn tin học của em, với công thức
tính như sau: diemTB = (KtraHK*3 + Ktra1T*2 + Ktra15p + Ktra15p)/7
In ra màn hình điểm trung bình đó và thông báo xếp loại cho môn tin học theo yêu
cầu sau:
Nếu diemTB >= 8 : Giỏi
diemTB >= 6.5 và diemTB < 8: Khá
diemTB >= 5 và diemTB < 6.5: Trung Bình
diemTB >= 3.5 và diemTB < 5 : Yếu
diemTB < 3.5 : Kém
#include <bits/stdc++.h>
using namespace std;
double a,b,c,d,t;
int main()
{
cin>>a>>b>>c>>d;
t=(a*3+b*2+c+d)/7;
cout<<fixed<<setprecision(2)<<t<<endl;
if (t>=8) cout<<"Gioi";
else if ((t>=6.5) and (t<8)) cout<<"Kha";
else if ((t>=5) and (t<6.5)) cout<<"Trung binh";
else cout<<"Yeu";
return 0;
}
Viết chương trình nhập vào điểm học kì môn Tin học sau đó tính điểm trung bình của cả lớp, thông báo điểm của học sinh cả lớp và điểm trung bình của lớp?
#include <bits/stdc++.h>
using namespace std;
double a[100],t;
int n,i;
int main()
{
cin>>n;
for (i=1; i<=n; i++) cin>>a[i];
for (i=1; i<=n; i++)
cout<<"Diem cua ban thu "<<i<<" la: "<<fixed<<setprecision(2)<<a[i]<<endl;
t=0;
for (i=1; i<=n; i++) t+=a[i];
cout<<"Trung binh cua lop la: "<<fixed<<setprecision(2)<<t/(n*1.0);
return 0;
}
Viết chương trình nhập vào điểm kiểm tra của một học sinh và in ra màn hình điểm trung bình của học sinh đó (3 môn thôi là đủ rồi)
nếu chạy ct mà nó không dừng lại thì bấm alt+F5 nhá
1.Tính điểm Trung Bình CảNăm môn Tin Học với công thức tính: (HK1+HK2*2)/3. Hãy nhập điểm từbàn phím điểm HK1, HK2.(3 điểm)2. Dựa vào Điểm Trung Bình môn Tin Học mà in ra xếp loại như sau:(4 điểm)-Nếu ĐTB >= 8.0 thì xếp loại Giỏi-Nếu ĐTB >= 6.5 thì xếp loại Khá-Nếu ĐTB >= 5.0 thì xếp loại TB-Nếu ĐTB < 5.0 thì xếp loại Yếu.
Giúp e với ạ!!
#include <bits/stdc++.h>
using namespace std;
double a,b,tb;
int main()
{
cin>>a>>b;
tb=(a+b*2)/3;
cout<<fixed<<setprecision(2)<<tb<<endl;
if (tb>=8.0) cout<<"Gioi";
else if ((tb>=6.5) and (tb<8)) cout<<"Kha";
else if ((tb>=5.0) and (tb<6.5)) cout<<"Trung binh";
else cout<<"Yeu";
return 0;
}
1.Tính điểm Trung Bình CảNăm môn Tin Học với công thức tính: (HK1+HK2*2)/3. Hãy nhập điểm từbàn phím điểm HK1, HK2.(3 điểm)2. Dựa vào Điểm Trung Bình môn Tin Học mà in ra xếp loại như sau:(4 điểm)-Nếu ĐTB >= 8.0 thì xếp loại Giỏi-Nếu ĐTB >= 6.5 thì xếp loại Khá-Nếu ĐTB >= 5.0 thì xếp loại TB-Nếu ĐTB < 5.0 thì xếp loại Yếu.
Giúp e với ạ!!
#include <bits/stdc++.h>
using namespace std;
double a,b,kq;
int main()
{
cin>>a>>b;
kq=(a+b*2)/3;
cout<<fixed<<setprecision(2)<<kq;
return 0;
}
Viết chương trình nhập vào điểm 2 môn Toán, Văn từ bàn phím. Điểm Anh văn được gán bằng 8.0 điểm. Sau đó tính tổng điểm, điểm trung bình cộng 3 môn học trên và đưa kết quả ra màn hình. (Điểm trung bình cộng lấy 1 số thập phân.) lẹ cho mình nha cảm mưn mn.
viết chương trình nhập điểm thi 2 môn ngữ văn và toán của các học sinh khối 9 tính điểm trung bình và in ra màn hình kết quả thi đậu nếu điểm trung bình lớn hơn hoặc bằng 5 còn thi trượt nếu như điểm trung bình bé hơn 5
program DiemTB;
var
diemToan, diemVan, diemTB: real;
begin
write('Nhap diem mon Toan: ');
readln(diemToan);
write('Nhap diem mon Van: ');
readln(diemVan);
diemTB := (diemToan + diemVan) / 2;
writeln('Diem trung binh: ', diemTB:0:2);
if diemTB >= 5 then
writeln('Chuc mung! Ban da dau ky thi.')
else
writeln('Rat tiec! Ban da truot ky thi.');
readln;
end.