Write a calculator program using a do-while loop and a switch statement. You pro
ID: 3639954 • Letter: W
Question
Write a calculator program using a do-while loop and a switch statement. You program should ask the user to select an operation (+,-,*,/,q) and then it'll ask two floating point numbers as inputs. It will respond in the following way:* It computes and display the result if the operation is +, ?,*, / or q. It quits without asking the user for further input if the operation is 'q'.
* A blank character (space, tab or newline) is ignored. You can use the library function isspace(char) to test if the character is a space character. To use this function you must include the header file <ctypes.h>
* If any other non-blank character is entered by the user the message "Invalid operator" is printed and the user is not prompted to enter two numbers.