Question: I'd like a PowerShell program that will do the following: The program should display a menu with the following options: Multiply Divide Add Subtract Quit

I'd like a PowerShell program that will do the following:

  1. The program should display a menu with the following options:
    1. Multiply
    2. Divide
    3. Add
    4. Subtract
    5. Quit
  2. Then, whichever choice is selected, it should capture the choice that was made.
  3. Now, the program should process the response the user made into action by asking for 2 additional integers (such as if the user selected to multiply, the program would ask for two numbers)
  4. At this point, the program should then perform the action and display the correct output.
  5. Then I would like the program to ask if additional actions need to be done.
  6. If the user wishes to quit the program, it should cancel when they select the Quit option and enter it.

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!