Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include <iostream> using namespace std; // FIXME (3) multiply function // FIXME

ID: 3671311 • Letter: #

Question

 #include <iostream> using namespace std;  // FIXME (3) multiply function  // FIXME (5) divide function   int main() {    double num1 = 0.0;    double num2 = 0.0;    double prod = 0.0; //product of numbers    double quot = 0.0; //quotient of numbers     // FIXME (1) Prompt user for floating point numbers (type double) and print them     //Call multiply function    multiply(num1, num2, prod);     // FIXME (2) Call divide function      // FIXME (4) Output result of num1 * num2      // FIXME (6) Output result of num1 / num2      return 0; } 

Explanation / Answer

// default values in functions

#include <iostream>

using namespace std;

int multiply (double num1, double num2)

{

Double prod;

prod=num1*num2;

return (prod);

}

int divide (double a, double b)

{

double quot;

quot=a/b;

return (quot);

}

int main ()

{

double num1 = 0.0;

   double num2 = 0.0;

   double prod = 0.0; //product of numbers

   double quot = 0.0; //quotient of numbers

cout<<”the multiplication result is:”

cout<<multiply(num1,num2);

cout << divide (num1,num2);

cout << endl;

-- cout << divide (20,4);//example for moe you give as params if you test it you can use like this way

return 0;

}