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

***Use visual c++ 2010 to complete the tasks listed below*** A. Write a function

ID: 3634024 • Letter: #

Question

***Use visual c++ 2010 to complete the tasks listed below***

A. Write a function named check() that has thre parameters. The first parameter should accept an inerger number, and the second and third parameters should accept a double-precision number. The function body should just display the values of data passed to the fucntion when it's called. (Note: When tracing errors in fucntions, having the function diplay values it has been passed is helpful. Quite often, the error isn't in whatthe function body does with data, but in the data received and stored.)

B. Include the function writen in A in a working program. Make sure your function is called from main(). Test the function by passing various data to it.

Explanation / Answer

#include<iostream>

using namespace std;

void check(int a,double b,double c)

{

cout << a << endl;

cout << b << endl;

cout << c << endl;

}

int main()

{

int a=4;

double b=5.4,c=6.7;

check(a,b,c);

return 0;

}