Write a program for a college's admissions office. Createvariables that store a numeric high school grade point average andan admission test score.Print the message "Accept" if the studenthas any of the following:A grade point average of 3.6 or above and an admission testscore of at least 60A grade point average of 3.0 or above and an admission testscore of at least 70A grade point average of 2.6 or above and an admission testscore of at least 80A grade point average of 2.0 or above and an admission testscore of at least 90If the student does not meet any of the qualifications, print"Reject."

Respuesta :

Answer:

# include<iostream>

#include<conio.h>

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".