Question: 9 . consider the following code: int numCredit = 7 5 ; string studentYear; if ( numCredit > = 9 0 ) { studentYear =

9. consider the following code: int numCredit =75; string studentYear; if (numCredit >=90){ studentYear = "senior"; if (numCredit >=120){ Console.WriteLine("student is ready to graduate"); } else { Console.WriteLine("student needs more credit hours to graduate"); }} else { Console.WriteLine("student is not senior"); } After this code is executed, which text is displayed?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!