Question: ///////// c++ program 4//////////// /////////using Linux ////////// write a program that will create a vertical bar chart of some number of integer values. The program

///////// c++ program 4////////////

/////////using Linux //////////

write a program that will create a vertical bar chart of some number of integer values. The program will ask the user how many values they will enter (between 1 and 20, inclusive) and then will prompt the user to enter each value (between 0 and 10, inclusive). After all of the data is entered then the program will create a vertical bar chart using

"*" characters.

This is an example run of how your program should work ----------------------------------------------------------------------

How many values will you enter: 8

Enter a number between 0 and 10 (inclusive):1 Enter a number between 0 and 10 (inclusive):2 Enter a number between 0 and 10 (inclusive):4 Enter a number between 0 and 10 (inclusive):0 Enter a number between 0 and 10 (inclusive):10 Enter a number between 0 and 10 (inclusive):7 Enter a number between 0 and 10 (inclusive):-1 Invalid value. Try again. Enter a number between 0 and 10 (inclusive):8 Enter a number between 0 and 10 (inclusive):3

* * * * *** *** *** * *** * **** ** **** *** **** ----------------------------------------------------------------------

Feel free to use as many classes as you want with this program. Think about object oriented design and what sorts of classes you would want. There are multiple ways to design this but one possibility is that you have a class DataSet that contains the data and another class BarCharter that is a class that knows how to print a vertical bar chart given a DataSet.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!