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("ştudent needs more credit hours to graduate"); else Console.WriteLine("student is not senior"); After this code is executed, which text is displayed? senior O student is ready to graduate O student needs more credit hours to graduate O student is not senior

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 1CP
icon
Related questions
Question
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("ştudent needs more credit hours to graduate");
else
Console.WriteLine("student is not senior"):
After this code is executed, which text is displayed?
senior
student is ready to graduate
student needs more credit hours to graduate
student is not senior
MacBook Pro
Transcribed Image Text: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("ştudent needs more credit hours to graduate"); else Console.WriteLine("student is not senior"): After this code is executed, which text is displayed? senior student is ready to graduate student needs more credit hours to graduate student is not senior MacBook Pro
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning