he Huntington High School basketball team has five players named Art, Bob, Cal, Dan, and Eli. Accept the number of points scored by each player in a game and create a bar chart that illustrates the points scored by displaying an asterisk for each point
This is the question I am stuck on - The Huntington High School basketball team has five players named Art, Bob, Cal, Dan, and Eli. Accept the number of points scored by each player in a game and create a bar chart that illustrates the points scored by displaying an asterisk for each point. The output looks similar to the chart in Figure 6-34. The figure looks like this -
Enter points earned by Art >> 8
Enter points earned by Bob >> 12
Enter points earned by Cal >> 18
Enter points earned by Dan >> 14
Enter points earned by Eli >> 6
Points for Game
Art ********
Bob ************
Cal ******************
Dan **************
Eli ******
The code that I already have is this but otherwise I am stuck -
Trending now
This is a popular solution!
Step by step
Solved in 3 steps