hello everyone,
i'm facing a problem in writing a cplusplus program that produces a bar chart showing the yearly income of a person starting from 1990. The program reads the income figures and round to the nearest $1,000 For each year it should display the date and a bar consisting of one star („*‟) for each $1,000.
output should be like this
1990 **
1991 ****
1992 ***
1993 *****
hint: Your program must have 2 functions: one function to get the length of the bar for a given year and the other function draws one line of the chart.
thanks in advance :)
Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.