Answered step by step
Verified Expert Solution
Question
1 Approved Answer
#include #include #include using namespace std; void getGrades ( char grades [ ] ) { string courses [ ] = { CIS 1 0
#include
#include
#include
using namespace std;
void getGradeschar grades
string coursesCIS "CIS "CIS CS or CS CS or CS CS ;
cout "Please enter your letter grade for each specified course and press enter after each one:" endl;
for int i ; i ; i
cout coursesi: ;
cin gradesi;
gradesi touppergradesi;
int gradeToScorechar grade
switch grade
case A: return ;
case B: return ;
case C: return ;
case D: return ;
case F: return ;
default: return ;
void getScoresconst char grades int scores
for int i ; i ; i
scoresi gradeToScoregradesi;
bool areAllAboveconst int scores
for int i ; i ; i
if scoresi
return false;
return true;
double computeAverageconst int scores
int sum ;
for int i ; i ; i
sum scoresi;
return staticcastsum;
double computeUpperLevelAverageconst int scores
int sum ;
for int i ; i ; i
sum scoresi;
return staticcastsum;
int countAboveconst int scores
int count ;
for int i ; i ; i
if scoresi
count;
return count;
void gatherAdditionalInfoAndCalculateCriteriaint& criteriascore, int& criteriascore, int& criteriascore
float nonCSGPA;
char volunteeringexperience;
int yearsofexperience;
cout "Please enter your nonCS GPA: ;
cin nonCSGPA;
if nonCSGPA
criteriascore ;
else if nonCSGPA
criteriascore ;
else if nonCSGPA
criteriascore ;
else if nonCSGPA
criteriascore ;
cout Do you have previous volunteering experience? Please enter Y or y for yes or N or n for no: ;
cin volunteeringexperience;
if volunteeringexperience y volunteeringexperience Y
criteriascore ;
cout "Please enter the number of years in a related job or internship: ;
cin yearsofexperience;
if yearsofexperience
criteriascore ;
else if yearsofexperience
criteriascore ;
else if yearsofexperience
criteriascore ;
void displayResultsconst string& firstName, const string& lastName, int totalScore
cout "Application score for lastName firstName : totalScore endl;
void processApplicant
string firstName, lastName;
const int NUMGRADES ;
char gradesNUMGRADES;
int scoresNUMGRADES;
int criteriascore criteriascore criteriascore criteriascore ;
int criteriascore criteriascore criteriascore ;
cout "Please enter your first name: ;
cin firstName;
cout "Please enter your last name: ;
cin lastName;
getGradesgrades;
getScoresgrades scores;
double average computeAveragescores;
if average
criteriascore ;
else if average
criteriascore ;
if areAllAbovescores
criteriascore ;
if countAbovescores
criteriascore ;
double upperLevelAverage computeUpperLevelAveragescores;
if upperLevelAverage
criteriascore ;
else if upperLevelAverage
criteriascore ;
gatherAdditionalInfoAndCalculateCriteriacriteriascore, criteriascore, criteriascore;
int totalScore criteriascore criteriascore criteriascore criteriascore criteriascore criteriascore criteriascore;
displayResultsfirstName lastName, totalScore;
int main
int numApplicants;
cout "Enter the number of applicants: ;
cin numApplicants;
for int i ; i numApplicants; i
cout
Applicant i : endl;
processApplicant;
return ;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started