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");
}
Related 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.