Write a simple arithmetic expression translator that reads in expressions such as 25.5 + 34.2 and displays their value. each expression has two numbers separated by an arithmetic operator. (hint: use a switch statement with the operator symbol (type char) as a selector to determine which arithmetic operation to perform on the two numbers. for a sentinel, enter an expression with zero for both operands.)

Solved
Show answers

Ask an AI advisor a question