Question: I need help with C# programming language Objective: To create a menu-driven program that allows users to perform basic mathematical operations such as addition, subrractien,
Objective: To create a menu-driven program that allows users to perform basic mathematical operations such as addition, subrractien, multiplication, and division. To use deckion-making statements and functions to determine the user's input and perform the corresponding calculation. To use ittrations to allow the user to perform multiple calculations without having to restart the program. Instructions: Create a menu-driven program that allows the user to select from the following options: Addition Subtraction Multiplication Division Apply four operations. Average Exit Use a decision-making shatement (e. By if-elve, switch) to determine the user's input and perform the corresponding calculation. For example, if the user selects "Addition", the prouram should prompt the user to enter two numbers and then display the result of the addition. Create a function for each mathematical operation (he.; addition, pubtraction, multiplication, and division) to simplify the code and make it more organised. The functions should take two parameters (i.e., the two numbers being operated on) and return the result of the calculation. Apply four operations - should take two parameters and show all the mathematical for each mathematical operation (l.e, addition, subtraction, multiplication, and dhision) at once, and show all the results. Calculate wverage - should take three parameters and find and display the average of those three parameters. Use an iteration (es. while loop) to allow the user to perform multiple calculations without having to restart the program. The program should continue to diaplay the menu of options until the user selects "Ixit". The program should also validate user input when they select the operation from the menu, yet you may assume the user enters the numeric input after they select the desired operation. If the user enters an invalid selection, the propram thould display an error message and prompt the user to enter a valid value. The program should also have to calculate the result as infinity if the denominator of the division is zero. (e 8 . 5/00 infinityl Once the program is complete, test it to ensure that it performs alt the calculations correctly and that it handles invalid input and divide by zero erroes properly. Submit the program along with the screenshots of the program running and performing the calculations correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
