Question: 2. (20 points) Write a script file ( m or . mlx ) containing a single if statement to categorize a student's current status based

 2. (20 points) Write a script file ( m or .

2. (20 points) Write a script file ( m or . mlx ) containing a single if statement to categorize a student's current status based on the expected graduation year. (1) Ask the user to enter his or her expected graduation year. (2) If the entered value falls in the range 2023-2026, the student is an undergraduate student, then display the message 'This is an undergraduate student.". (3) If the entered value falls in the range 2020-2022, the student is a graduate student, then display the message 'This is a graduate student.". (4) If the entered value does not fall into any of the above ranges, display the message 'The status is unknown

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 Databases Questions!