Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Use the script below and finish the program which should do the following: After RUN the program should ask you first line Enter the

C#

Use the script below and finish the program which should do the following:

After RUN the program should ask you first line

Enter the year of college you are in below to find the college level

2nd line

Input College Year No

If you enter wrong year then you will get a prompt below

Invalid Year number Please try again

switch(year)

{

case 1:

WriteLine("Freshman") ;

break;

case 2:

WriteLine("Sophomore") ;

break;

case 3:

WriteLine("Junior") ;

break;

case 4:

WriteLine("Senior") ;

default:

message = "Invalid year" ;

break;

}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

Students also viewed these Databases questions

Question

Recommend the key methods to improve service productivity.

Answered: 1 week ago