Answer to Question #349120 in C++ for asd

Question #349120

Compute the total quiz and average quiz of three (3) scores. Determine if the average score is greater than or equal to 70, if TRUE , display Remarks is “ PASSED” otherwise display “FAILED”.


1
Expert's answer
2022-06-10T08:30:23-0400
#include <iostream>

int main() {
	int first, second, third, average, total;
	std::cout << "Enter 1st score: ";
	std::cin >> first;
	std::cout << "Enter 2nd score: ";
	std::cin >> second;
	std::cout << "Enter 3rd score: ";
	std::cin >> third;
	total = first + second + third;
	average = total / 3;
	std::cout << std::endl;
	if(average >= 70){
	    std::cout << "PASSED" << std::endl;
	} else {
	    std::cout << "FAILED" << std::endl;
	}
	return 0;
}

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