Write a new function called superoperator


1) Programs should be well-documented. Documentation must include your name. as well as a description of your program. (penalties might apply for bad documentation or coding style). Note that overcommenting is bad as well.

Problem1: Overloading functions 

Write a new function called superOperator() that can take any number of arguments (up to 3). First,it multiplies all the arguments and stores the result in a variable (result1), then it adds up all the arguments and stores the result in another variable (result2). Finally it returns the difference between result1 and result2 (result1 - result2). If you use overloading, you will end up with three functions with the same name.
Examples:
superOperator(5) returns 0
superOperator(2, 5) returns 3
superOperator(4, 3, 7) returns 70 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a new function called superoperator
Reference No:- TGS098752

Expected delivery within 24 Hours