Write a program with correct functions that accepts as input a sequence of numbers and operations in the following format:

operation number type number number
Example: addition double 23.4 13.7
  • The operations are addition, subtraction, multiplication, division
  • Number type is
    • integer or
    • double
  • Each operation and data type are required to have its own functions.
  • All functions accept as input the values they are to work with
  • The integer operations will process and print the information inside the function.
  • The double functions will return the result for main to print.

There is one additional "operation": stop which indicates the end of input to the program. Until then keep processing data

You are to output the following for each input:

Operation: number the_operation_symbol number = result (bold and italics for emphasis here not for display in the console)

Each function should be prototyped at the top of the program and implemented below main

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.