Question: //Here is an example of how the chart might begin: PRAIRIEVILLE POPULATION GROWTH (each * represents 1,000 people) 1900 ** 1920 **** 1940 ***** The

//Here is an example of how the chart might begin: PRAIRIEVILLE POPULATION GROWTH (each * represents 1,000 people) 1900 ** 1920 **** 1940 *****

The program complies like this **** Year 1 ******* Year 2 ********* Year 3

How do I get it this way below? Year 1 **** Year 2 ******* Year 3 *********

[Program finished]

[Program finished]

#include using namespace std;

int returnStar(int n[24],int p[24][24]); int getYear(int);

int main(int argc, char *argv[]) { int pop[5] = {4000, 7000, 9000}; int n[24]; int nPop[24][24]; int div[24]; // returnStar(pop,nPop); for(int i=0; i<3; i++) { n[i]=getYear(i); pop[i]=pop[i]/1000;

for(int j=0; j

cout<<" Year "<

} return 0; }

//// int getYear(int year) { if (year==0) {return 1900; }

if(year==1) {return 1920; } if(year==2) {return 1980;

} }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!