Write a program to input test scores, midterm exam scores, final exam scores, then calculate the total score and print the results to the screen as follows #include #include #include using namespace std; int main(int argc, char *argv[]) { float q1; float q2; float q3; float tongdiemkt; float diemgk; float diemck; float tongdiem; cout<<"==========Diem kiem tra================\n"; cout<<"Nhap diem kiem tra 1:"; cin>>q1; cout<<"\n"; cout<<"Nhap diem kiem tra 2:"; cin>>q2; cout<<"\n"; cout<<"Nhap diem kiem tra 3:"; cin>>q3; cout<<"\n"; cout<<"==========Diem thi giua ky=============\n"; cout<<"Nhap diem thi giua ky:"; cin>>diemgk; cout<<"\n"; cout<<"===========Diem thi cuoi ky=============\n"; cout<<"Nhap diem thi cuoi ky:"; cin>>diemck; cout<<"\n"; tongdiemkt=q1+q2+q3; tongdiem=tongdiemkt+diemgk+diemck; cout<<"Tong diem kiem tra:"<<right<<setw(5)<<tongdiemkt; cout<<"\n"; cout<<"Diem thi giua ky:"<<right<<setw(7)<<diemgk; cout<<"\n"; cout<<"Diem thi cuoi ky:"<<right<<setw(10)<<diemck; cout<<"\n"; cout<<".................................\n"; cout<<"Tong diem:"<<right<<setw(11)<<tongdiem; cout<<"\n"; return 0; }
bufordmedina/Write-a-program-to-input-test-scores-midterm-exam-scores-final-exam-scores-then-calculate-the-tot
Write a program to input test scores, midterm exam scores, final exam scores, then calculate the total score and print the results to the screen as follows