Consider the following program

Consider the following program. (6, 7, 8)

#include

#include

#include

using namespace std;

void trackVar(double& x, double y);

int main()

    double one, two;

    cout < fixed=””>< showpoint=””><>

    cout < “enter=”” two=”” numbers:=””>

    cin >> one >> two;

    cout <>

trackVar(one, two);

    cout

    trackVar(two, one);

    cout

    return 0;

void trackVar(double& x, double y)

    double z;

    z = floor(x) + ceil(y);

    x = x + z;

    y = y – z;

    cout << ” z=” << z << ” ,=”” “;=””>

a. What is the output if the input is 3 5?

b. What is the output if the input is 4 11?

c. What is the output if the input is 10 10?

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X