Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE ACTIVITY 5 . 2 . 3 : Print functions. 5 4 3 3 1 6 . 3 2 7 1 4 4 0 qx

CHALLENGE
ACTIVITY
5.2.3: Print functions.
543316.3271440 qx 3zag7
Jump to level 1
Read two strings and two integers from input and call PrintCityPopulation() to output as follows.
Ex: If the input is Columbus Brasilia 7870332648532, then the output is:
Columbus has 787033 people.
Brasilia has 2648532 people.
void PrintCityPopulation(string var1, int var2){
}
cout var 1 has " var2" people." endl;
int main (){
int var1;
int var2;
cin var1;
cin var 2 ;
PrintCityPopulation (|/ar1, var2);
}
return ;
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions