Hi everyone.. I need some help on a homework assignment. I have been reading on it and trying to create the program for the past 5 hours or so and now im just getting frustrated.. I'm not looking for you to do it for me.. just a push in the right direction. :)
Here is what we are supposed to do:
Create a bar chart using * and spaces from a set of integers through standard input.
The user will input a set of integers up to 100 greater than 0. When the user enters 0 the program will stop reading standard input and print the chart.
For example if the user enters 1 2 3 4 3 2 1 10 0 it would print:
1 2 3 4 5 6 7 8 9 10
*
*
*
*
*
*
* *
*** *
***** *
********
Here is my (many times edited) code so far.. Not sure if it is headed in the right direction?