Answer to Question #227799 in C++ for Lee

Question #227799
USE APPROPRIATE CONTROL STRUCTURES TO DESIGN YOUR PROGRAMME
The specifications of the program are as follows:
1. Prompt the user to capture marks for Mathematics, Physics and English

2
1
Expert's answer
2021-08-19T14:30:35-0400
#include <iostream>
#include <string>
using namespace std;


int main()
{
	int markMathematics;
	int markPhysics;
	int markEnglish;
	//Prompt the user to capture marks for Mathematics, Physics and English
	cout<<"Enter mark mathematics: ";
	cin>>markMathematics;
	cout<<"Enter mark physics: ";
	cin>>markPhysics;
	cout<<"Enter mark english: ";
	cin>>markEnglish;
	int total=markMathematics+markPhysics+markEnglish;
	cout<<"Total marks: "<<total<<"\n";


	cin>>markEnglish;




	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