#include using namespace std; typedef struct size { int Phy; int Chem ; int total; } limit; int main() { typedef int class_size; class_size Physics, Chemistry, Total, total; cout << "Enter the number of students.\n"; cout << "Physics: "; cin >> Physics; cout << "Chemistry: "; cin >> Chemistry; Total = Physics + Chemistry; cout << "\nNumber of students:"; cout << "\n No. of Students in Phyics: " << Physics; cout << "\n No. of Chemistry: " << Chemistry << "\n"; cout << "\n Total No. of Students: " << Total << "\n"; limit seatlimit; // limit is alias of size seatlimit.Chem = 30; total = seatlimit.Chem - Chemistry; if(Chemistry > seatlimit.Chem) { cout << "seat overflown in Chemistry Class "<< total ; // } else { cout << "seat remains in Chemistry Class "<< total ; // } return 0; }