Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include using namespace std; int main ( ) { string firstName, lastName; char grade; int score 1 , score 2 , score 3 ,

#include
#include
using namespace std;
int main(){
string firstName, lastName;
char grade;
int score1, score2, score3, score4, score5, score6, score7, score8;
float averageScore, nonCS_GPA;
int criteria1_score =0, criteria2_score =0, criteria3_score =0,
criteria4_score =0, criteria5_score =0;
int criteria6_score =0, criteria7_score =0;
char volunteering_experience;
int years_of_experience;
cout<<"You will be asked to input your first and last name"<> firstName;
cout << "Enter your last name: ";
cin >> lastName;
cout << "Enter your grades for the specified courses (A/B/C/D/F): "<< endl;
cout << "CIS 101: ";
cin >> grade;
switch (grade){
case 'A': score1=100; break;
case 'B': score1=90; break;
case 'C': score1=80; break;
case 'D': score1=60; break;
case 'F': score1=0; break;
default: score1=-1;
}
cout << "CIS 120: ";
cin >> grade;
switch (grade){
case 'A': score2=100; break;
case 'B': score2=90; break;
case 'C': score2=80; break;
case 'D': score2=60; break;
case 'F': score2=0; break;
default: score2=-1;
}
cout << "CIS 210: ";
cin >> grade;
switch (grade){
case 'A': score3=100; break;
case 'B': score3=90; break;
case 'C': score3=80; break;
case 'D': score3=60; break;
case 'F': score3=0; break;
default: score3=-1;
}
cout << "CIS 113 or 116: ";
cin >> grade;
switch (grade){
case 'A': score4=100; break;
case 'B': score4=90; break;
case 'C': score4=80; break;
case 'D': score4=60; break;
case 'F': score4=0; break;
default: score4=-1;
}
cout << "CIS 136: ";
cin >> grade;
switch (grade){
case 'A': score5=100; break;
case 'B': score5=90; break;
case 'C': score5=80; break;
case 'D': score5=60; break;
case 'F': score5=0; break;
default: score5=-1;
}
cout << "CIS 213 or 216: ";
cin >> grade;
switch (grade){
case 'A': score6=100; break;
case 'B': score6=90; break;
case 'C': score6=80; break;
case 'D': score6=60; break;
case 'F': score6=0; break;
default: score6=-1;
}
cout << "CIS 130: ";
cin >> grade;
switch (grade){
case 'A': score7=100; break;
case 'B': score7=90; break;
case 'C': score7=80; break;
case 'D': score7=60; break;
case 'F': score7=0; break;
default: score7=-1;
}
cout << "CIS 131: ";
cin >> grade;
switch (grade){
case 'A': score8=100; break;
case 'B': score8=90; break;
case 'C': score8=80; break;
case 'D': score8=60; break;
case 'F': score8=0; break;
default: score8=-1;
}
averageScore =(score1+ score2+ score3+ score4+ score5+ score6+ score7+
score8)/8.0;
if (averageScore >90){
criteria1_score =100;
} else if (averageScore >85){
criteria1_score =90;
}
if (score1>=65 && score2>=65 && score3>=65 && score4>=65 && score5>=
65 && score6>=65 && score7>=65 && score8>=65){
criteria2_score =100;
}
int countAbove85=0;
if (score1>85) countAbove85++;
if (score2>85) countAbove85++;
if (score3>85) countAbove85++;
if (score4>85) countAbove85++;
if (score5>85) countAbove85++;
if (score6>85) countAbove85++;
if (score7>85) countAbove85++;
if (score8>85) countAbove85++;
if (countAbove85>=4){
criteria3_score =100;
}
float upperLevelAverage =(score5+ score6+ score7+ score8)/4.0;
if (upperLevelAverage >90){
criteria4_score =100;
} else if (upperLevelAverage >85){
criteria4_score =90;
}
cout << "Enter your non-CS GPA: ";
cin >> nonCS_GPA;
if (nonCS_GPA >=4.0){
criteria5_score =100;
} else if (nonCS_GPA >=3.5){
criteria5_score =90;
} else if (nonCS_GPA >=3.0){
criteria5_score =80;
} else if (nonCS_GPA >=2.5){
criteria5_score =50;
}
cout <<"Do you have previous volunteering experience? (y/n): ";
cin >> volunteering_experience;
if (volunteering_experience =='y'|| volunteering_experience =='Y'){
criteria6_score =50;

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions