I so need help guess...trying to make a bar chart but it keeps outputting one date and a bunch of stars... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I so need help guess...trying to make a bar chart but it keeps outputting one date and a bunch of stars...

include <iostream> #include <fstream> using namespace std; int main() { long population; ifstream inputFile; inputFile.open("People.txt"); cout <<"Prairieville Population Growth\n"; cout <<"(each * represents 1000 people)\n"; for (int year = 1900; year <=2000; year+=20) for (int year = 1920; year <= 2000; year+ 20) for (int year = 1940; year <= 2000; year+20) { inputFile >> population; cout << year << " "; for(int star = 1; star <=population /1000; s

13th Feb 2017, 5:03 AM
Jackie
1 Answer
0
could you please upload the complete code in Sololearn’s codeplayground and share it with us?
27th Apr 2019, 7:35 AM
CloudWay
CloudWay - avatar