Answer to Question #261558 in C++ for maks

Question #261558

write a c++ program about this "Compute the final grade, the user will supply the recitation, exam, project, and attendance grade. Recitation is 15%, Exam is 35%, Project is 20% and Attendance is 30%. Final grade will be the sum of recitation, exam, project and attendance after getting the corresponding percentages."


1
Expert's answer
2021-11-05T17:22:17-0400
#include<iostream>
using namespace std;

int main()
{
	double recitation, exam, project, attendance;
	cout<<"Computing final grade:\n";
	cout<<"Please, enter a grade for the Recitationn:";
	cin>>recitation;
	cout<<"Please, enter a grade for the Exam:";
	cin>>exam;
	cout<<"Please, enter a grade for the Project:";
	cin>>project;
	cout<<"Please, enter a grade for the Attendance:";
	cin>>attendance;
	double final=0.15*recitation+0.35*exam+0.2*project+0.3*attendance;
	cout<<"The final grade is:"<<final;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS