Write a program for a college's admissions office. Create variables that store a numeric high school grade point average and an admission test score.

Print the message "Accept" if the student has any of the following:

- A grade point average of 3.6 or above and an admission test score of at least 60
- A grade point average of 3.0 or above and an admission test score of at least 70
- A grade point average of 2.6 or above and an admission test score of at least 80
- A grade point average of 2.0 or above and an admission test score of at least 90

If the student does not meet any of the qualifications, print "Reject."

Answer :

Answer:

# include

#include

using namespace std;

main()

{

float highschoolgrade, admissiontestscore;

cout<<"High Schoo; Grade =";

cin>>highschoolgrade;

cout<<"\n Admission Test Score = ";

cin>>admissiontestscore;

if (highschoolgrade>=3.6 && admissiontestscore>=60 || highschoolgrade>=3.0 && admissiontestscore>=70 || highschoolgrade>=2.6 && admissiontestscore>=80 || highschoolgrade>=2.0 && admissiontestscore>=90)

{

cout<<"Accept";

}

else

{

cout<<"Reject";

}

getch();

}

Explanation:

The program has two variable highschoolgrade for entering high school grade in float datatype so that user can enter marks in decimal format and admissiontestscore for entering marks of admission test. It is also in float data type.

If else conditional statement has been used with AND Logic Operator (&&) and OR logic Operator (||) to meet the conditions given in the program statement.

If the conditions meet the program will print "Accept" else print "Reject".