Question: 20.(4 pts) Consider the following structure declaration when answering the questions below. struct University string nickname; int underGrads; int grads; int alumni; nickname of the
20.(4 pts) Consider the following structure declaration when answering the questions below. struct University string nickname; int underGrads; int grads; int alumni; nickname of the university // number of under graduate students // number of graduate students // number of alumni a) Write a statement that declares the identifier UAH as a structure variable of Data Type University. b) Writ UAH e a cout statement that will output the value of the member grads of the structure variable c) Write a cout statement that will output the value of the member nickname of the structure variable UAH d) Write a statement that assigns a value of "Chargers" to the nickname member of UAH. 21.(4 pts) Write the type declaration for a struct DataType named Counters containing the following members: an integer variable representing the number of letters - an integer variable representing the number of digits an integer variable representing the number of lines - a string variable indicating the name of the counter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
