Write a program that has five functions as follows: main – the main function wil
ID: 3627441 • Letter: W
Question
Write a program that has five functions as follows:main – the main function will declare three variables called number1, number2, and multiple. It will then be calling the other four functions. Calls to the input functions and the multiplication function will be on the right side of an assignment so that the returned values are assigned to the correct variables.
inputNumber1 – this function will display a message to the screen telling the user to enter the first number and it will then read a number from the keyboard. The number will be returned.
inputNumber2 – this function will display a message to the screen telling the user to enter the second number and it will then read a number from the keyboard. The number will be returned.
multiply – this function will receive two number parameters. It will then multiply the two numbers from the parameters. The answer of the multiplication is returned.
display – this function will have one number parameter and will display a message to the screen telling the user that the multiple of the numbers entered in the value in the parameter. There is no return value from this function so it should be a void.
Explanation / Answer
Hi, here is a solution to meet exact specification #include using namespace std; int inputNumber1(){ int n1; cout > n1; return n1; } int inputNumber2(){ int n2; cout > n2; return n2; } int multiply(int n1, int n2){ return n1 * n2; } void display(int n){ coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.