Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Step 3: Type and Submit Program 1) Use https://dotnetfiddle.net/or Visual Stuido. Create a Console application in C# called IfExample 2) Inside the Main method, type

image text in transcribedimage text in transcribed

Step 3: Type and Submit Program 1) Use https://dotnetfiddle.net/or Visual Stuido. Create a Console application in C\# called IfExample 2) Inside the Main method, type in the following code as written here 3) Run the program as written. When prompted, enter MIS and observe what happens. Make sure you understand what's happening on each line before moving forward. What is your major?MIS Management Information Systems 4) Run the program again. This time, when prompted, enter ACCT and observe what happens. Make sure you understand what's happening on each line before moving forward. 5) Change the code from an if statement if-else. For majors that are not MIS, you should display "You are not an MIS major". Re-run the program (start without debugging). Now, when you enter ACCT, the following should be displayed. What is your major?ACCT You are not an MIS major 7) Change the code. The following changes should still be inside the Main method and added underneath your ifelse statement. - Ask the user to enter their first name. - Read their response into a variable called firstName - Ask the user to enter their last name. - Read their response into a variable called lastName - Display a message that says Thank You and includes their first and last name Here are some sample runs. Example \#1 What is your major?IB You are not an MIS major What is your first name?Bob What is your last name?Smith Thank you, Bob Smith! Example \#2 What is your major?MIS Management Information Systems What is your first name?Kate What is your last name?Jones Thank you, Kate Jones

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions