Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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# image text in transcribed
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

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

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

What are Decision Trees?

Answered: 1 week ago

Question

What is meant by the Term Glass Ceiling?

Answered: 1 week ago