Question: Given: enum courseType {ALGEBRA, ASTRONOMY, PHYSICS}; courseType course; The following gets and then outputs the course entered by a user: cin >> course; if (course
Given:
enum courseType {ALGEBRA, ASTRONOMY, PHYSICS};
courseType course;
The following gets and then outputs the course entered by a user:
cin >> course;
if (course == ALGEBRA)
cout << "Algebra";
else if (course == ASTRONOMY)
cout << "Astronomy";
else
cout << "Physics";
A) True
B) False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
