Answer to Question #268252 in C++ for Success

Question #268252

c++ full program that allows a lecture to add a semester mark final examination mark, the program must then compute to whether the student pass or not


1
Expert's answer
2021-11-18T11:34:24-0500
#include <iostream>


using namespace std;


int main() {
	float sem, final;
	cout << "Enter semester mark";
	cin >> sem;
	cout << "Enter final mark";
	cin >> final;
	cout << ((((sem + final) / 2) >= 60) ? "the student have passed" : "the student have not passed");
	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