Also write an appropriate function prototype for the calc


Write the C++ code for a void function that receives three double variables: the first two by value and the last one by reference. Name the formal parameters n1, n2, and answer. The function should divide the n1 variable by the n2 variable and then store the result in the answer variable. Name the function calc Quotient. Also write an appropriate function prototype for the calc Quotient function. In addition, write a statement that invokes the calc Quotient function, passing it the num1, num2, and quotient variables

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Also write an appropriate function prototype for the calc
Reference No:- TGS01594488

Expected delivery within 24 Hours