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

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

MGIS 2320 - 01 Write a console application to ask for a name and two numbers and produce the results as follows: Enter your name: Mike (** This could be any name. **) Enter x: 6 Enter y: 3 Here are the results: The result of 6 + 3 is: 9 6-3=3 The repult of 6 3 is: 18 6 divided by 3 is: 2 Thanks for using our program, Mike!! (** Whatever name you entered at the beginning. **) Requirements 1. The name and all the numbers above are only examples. 2. Declare four variables (.e. name, x, y, and result). 3. Declare x as an integer and y as a double (or vice versa). 4. Use placeholders () to display the results of + and 5. Use string concatenation (+) to display the results of and/. How to submit 1 Write your full name and Q# as a comment at the top of your source file (e... Rrogram.ss). To locate the source file, right-click at the tab of the source file in Visual Studio and click "Open Containing Folder" Save 2.0 Que doo Al This Copy Path Open Contang Folder 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 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 using System; Find namespace NaomiSinclair { class Program { static void Main(string[] args) { string name; int x; double y; double result; Console.Write("Enter your name:"); name = Console.ReadLine(); Console.Write("Enter x:"); x = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter y:"); y = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Here are the results:"); result = x + y; Console.Write("The result of {0} + {1} is: {2}", x, y, result); Console.Write("The result of {0} - {0} is: {0}", x, y, result); Console.Write("The result of {1} + {0} is: {2}", x, y, result); Console.Write("The result of {0} + {1} is: {1}", x, y, result); result = x - y; Console.Write("{x} - {y} is: {result}"); result = x * y; Console.Write(" The result of " + x + is: " + result); result = x/y; Console.Write("x + " + "divided by + is: " + result); Console.WriteLine("Thanks for using our program, " + name + "!!!"); } }

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!