Question: MGIS 2320 - 24 Write a console application to ask for two numbers and display the result only if the symbol input and the word
MGIS 2320 - 24 Write a console application to ask for two numbers and display the result only if the symbol input and the word input match as follows: Example Enter x: 4 Enter y: 2 Enter either a symbol or a word (+,-./, add, sub, mul, div): + To confirm, if you entered a symbol, this time enter its matching word (or vice versa): add 4+2 = 6 Example Enter x: 4 Enter y: 2 Enter either a symbol or a word (+,-./, add, sub, mul, div): add To confirm, If you entered a symbol, this time enter its matching word (or vice versa): + 4+2 = 6 I Example Enter x: 4 Enter y: 2 Enter either a symbol or a word (,./add, sub,mul, div): + To confirm, If you entered a symbol, this time enter its matching word (or vice versa): sub Mismatched operations! Requirements 1. All the values above are only examples. 2. Use || and && in the program. 3. If the two inputs are different (es and sub, divand- or + and /, etc.), then do not display the result, but display an error message eg. "Mismatched operations." How to submit 1 Write your full name and C# as a comment at the top of your source file (... Rrogram.cs). To locate the source file, right-click at the tab of the source file in Visual Studio and click "Open Containing Folder. Copy Contoh 2. Submit the cs file on Blackboard. Be sure that it is the file (NOT a project or solution file). Otherwise, your grade will be a zero Page 1 of 1 278 words % Focus 134%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
