At Westonci.ca, we make it easy to get the answers you need from a community of informed and experienced contributors. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Write three functions, float getNum(), float add(float, float), void outSum(float); that asks user for two numbers, finds the sum of two numbers, and displays the sum repeatly in a main program until the user enter “0” for either one of the numbers. For example, in the main, user enter 2, 4, output sum is 6. Then, 3,7, sum is 10, then 8, 7, sum is 15. When user enter one 0, the repeating process stops.C++ language only. No points will be given if other languages are used.


********************************
I have already written some code but I do not know where I am going wrong.
#include
using namespace std;
float getNum (float& x, float& y);
float add (float& x, float& y, float& z);
void outSum (float& z);



int main ()
{

float NumberOne = 0;
float NumberTwo = 0;
float Total = 0;


float getNum[2] = (NumberOne)(NumberTwo);
float add (NumberOne, NumberTwo, Total);
void outSum (Total);





}




float getNum (float& x, float& y)

{
cout << "Enter number one " << endl;
cin >> x;
cout << "Enter number two " << endl;
cin >> y;




}


float add (float& x, float& y, float& z) {
z = x + y;

}

void outSum (float& z) {

cout << "The total is " << z << endl << endl;

}