Exercise Problem

I have been studying c++ from ebook of alex allian. I have recently completed loops. At last there are practice problems and one of them is.

Write a program that provides the option of tallying up the results of a poll with 3 possible
values. The first input to the program is the poll question; the next three inputs are the possible
answers. The first answer is indicated by 1, the second by 2, the third by 3. The answers are
tallied until a 0 is entered. The program should then show the results of the poll—try making a
bar graph that shows the results properly scaled to fit on your screen no matter how many
results were entered.


I have no idea how to do it.... Please help me out and if you can explain. Please do so.
There's quite a lot in that question, but each individual part is fairly easy. The most challenging part is the bar graph, so i would leave that part until last.

I'm not familiar with that particular book. However usually i would expect that if you have worked methodically through a book from the start you should be in a position to at least attempt the questions yourself. How far did you get in solving this one, do you have any code you have written for it?
Thanks for the replay..........................I got it..................I have done it :-)
Topic archived. No new replies allowed.