Answer to Question #227052 in C++ for sandyJay

Question #227052

Your Employer requests you to develop a C++ 

program that allows a user to determine if a student qualifies for the NSFAS through their Average score for Mathematics, English and Physical Sciences. The 

program must receive three(3) marks for each of the subject in order to calculate the average. 

The average mark must determine whether or not a candidate qualifies for NSFAS.

The number of non-qualifying NSFAS students is 

multiplied with the highest amount(R75000) allocated for NSFAS.

1. Prompt the user to capture marks for Mathematics, Physics and English 2. The funding amounts are broken down as follows, an average marks of : a) 75% and above - R75000-00 b) 60% up to 74% - R60000-00 c) 50% up to 59% - R40000-00


1
Expert's answer
2021-08-17T14:12:44-0400
#include<iostream>
using namespace std;




int main(){
	int physical,eng, maths;
	cout<<"Enter the Mathematics mark\n";
	cin>>maths;
	cout<<"Enter the English mark\n";
	cin>>eng;
	cout<<"Enter the Physical Sciences mark\n";
	cin>>physical;
	double average = (physical + eng + maths) /3;
	cout<<"The average of the marks is:\t"<<average<<endl;
	if(average>= 75 && average<100){
		cout<<"The student has qualified for NSFAS funding\n";
		cout<<"The student should receive R75000-00\n";
	}
	else if(average>= 60 && average<=74){
		cout<<"The student has qualified for NSFAS funding\n";
		cout<<"The student should receive R60000-00 \n";
	}
	else if(average>= 50 && average<=59){
		cout<<"The student has qualified for NSFAS funding\n";
		cout<<"The student should receive R40000-00 \n";
	}
	else{
		cout<<"The student is not qualified for NSFAS funding\n ";
	}
	
	
}

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