Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MGIS 2320- Write a console application to ask for a name, two numbers, and a menu choice and produce the results as follows: Enter your

image text in transcribed
MGIS 2320- Write a console application to ask for a name, two numbers, and a menu choice and produce the results as follows: Enter your name: Mike (** This could be any name.*) Enter x 8 Enter y: 4 Enter a number (1 to add, 2 to subtract, 3 to multiply, 4 to divide): 3 (** This could be 1, 2, 3, or 4. **) 8*432 8*432 Thanks for using our program, Mikel (** Whatever name you entered at the beginning. **) Requirements 1. The name and all the values above are only examples 2. Declare four variables (ie, name, x, y, and result). 3. Declare x as an integer and y as a double (or vice versa). 4. If the entered menu choice is either 1, 2, 3, or 4, then display the result appropriately. Otherwise, do not display the result but simply display an error message eg. "Invalid Input". Use switch 5. Use placeholders to display the first line of the result. 6. Use string concatenation (+) to display the second line of the result. How to submit 1. Write your full name and C# as a comment at the top of your source file (e... Rregram.cs). To locate the source file, right-click at the tab of the source file in Visual Studio and click "Open Containing Folder." O22 SQUA Seve 20 dowe Close Al but the Copy Path Open Contafolder 2. Submit the cs file on Blackboard. Be sure that it is the CS file. (NOT a project or solution file). Otherwise, your grade will be a zero

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions