Suppose your program has the following declarations to represent information about a student:
string major // possibly empty
float gpa ;
bool female//true if female false if male
Write C++ logical conditions corresponding to each of the following sets. Your answers should be as compact as possible and cover all cases.
below are your conditions
a) !female && !major.empty() && major.find('e') == 0 && gpa <= 2.0
b) !major.empty() && major.find('s') == major.length() -1 && gpa= 4.0
Suppose your program has the following declarations to represent information about a student: string major //...