Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

///////// 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

1. Identify the sources for this conflict.

Answered: 1 week ago