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

a program contains the following function. void display(int arg1, double arg2, c

ID: 3609706 • Letter: A

Question

a program contains the following function. void display(int arg1, double arg2, char arg3) {    cout << "Here are the values: "          << arg1 << " " << arg2 << " " << arg3<< endl; } write a statement that calls the function and passes thefollowing variables into it: int age; double income; char initial; a program contains the following function. void display(int arg1, double arg2, char arg3) {    cout << "Here are the values: "          << arg1 << " " << arg2 << " " << arg3<< endl; } write a statement that calls the function and passes thefollowing variables into it: int age; double income; char initial;

Explanation / Answer

#include<iostream>
using namespace std;
void display(int arg1, double arg2, char arg3)
{
   cout << "Here are the values: "
          <<arg1 << " " << arg2 << " " << arg3 <<endl;
}

int main(){

int age;
double income;
char initial;

cout<<"Enterage,income and inital:";
cin>>age>>income>>initial;   
    display(age,income,initial);
    system("pause");
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote