Question: Q4 in C# MGIS 2320 - 24 Write a console application to ask for two numbers and display the result only if the symbol input

Q4 in C# Q4 in C# MGIS 2320 - 24 Write a console application to

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 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 (e.g. + and sub, div and -, or + and I, etc.), then do not display the result, but display an error message e.g. "Mismatched operations

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!