Question: Write a program that takes in two numbers from the user and an arithmetic operator (+,-, *, /, and %). The program should perform

Write a program that takes in two numbers from the user and an arithmetic operator (+,-, *, /, and %). The

Write a program that takes in two numbers from the user and an arithmetic operator (+,-, *, /, and %). The program should perform that operation on the two numbers entered by the user. Your program should take advantage of a switch that uses the arithmetic operator as the value for each case. Sample Output What is the first number? 9. What is the second number? 5. What is the operation? + 9+5 14 =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The image shows a programming exercise prompt that reads Based on this prompt here is a simple examp... View full answer

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 Programming Questions!