How do I do this?
Create a menu which asks the user:
a. Which drink do you like the best?"
c. Tea (2)
e. Orange Juice(4)
f. (-1 to exit)
g. Create a bar graph next to choice indicating the number of votes using *s after each vote
h. Keep asking this question until the user enters -1
(HINT: Declare integer variables for each type of drink, and use them as control variables)
a. Coffee(1) **
b. Tea (2) *
c. Coke(3) *****
d. Orange Juice(4) **
Would indicate 2 votes for coffee, 1 for tea, 5 for code, and 2 for Orange Juice
Re: How do I do this?
You posted this in the "What's Wrong with My Code?" forum, but you haven't actually posted any code.
Please follow the directions here: http://www.javaprogrammingforums.com...e-posting.html