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
#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 ";
}
}
Comments
Leave a comment