Consider the following code segment: enum GradeLevel { FRESHMAN, SOPHMORE, JUNIOR, SENIOR };

To get the Solution, drop an email at [email protected]
Please feel free to send us your queries at: [email protected]
Problem Statement

10. (8 Points) Consider the following code segment: enum GradeLevel \{ FRESHMAN, SOPHMORE, JUNIOR, SENIOR \}; struct Student \{ string first; string middle; string last; GradeLevel year; float GPA; \}; Student A0012; // Student ID A0012 Student A0013; // Student ID A0013 A0012.first = “Bjarne” A0012.last = “Stroustrup”; A0013=A0012; AO012 , year = SENIOR; A0013. middle = n C++ ∗ ; A0013. year = static_cast >( A0012. year −2) ; A0013.GPA = floor (A0012.GPA); // floor () rounds down to whole number A0012 ⋅ middle = A0013.middle ⋅ at (0)+ n ⋅ n ; What are the contents of the Student variables after this code has executed? Use the chart provided. Who is Bjarne Stroustrup anyway (Google it)?

To get the Solution, drop an email at [email protected]
Please feel free to send us your queries at: [email protected]