I am beginner and still learning c++. So this was a question in my assignment to make a horizontal bar chart something like this,
Example:
Input:
N1=>8 , N2=>6 , N3=>2 , N4=>10 , N5=>9
10 *
09 * *
08 * * *
07 * * *
06 * * * *
05 * * * *
04 * * * *
03 * * * *
02 * * * * *
01 * * * * *
1 2 3 4 5
The columns are constant i.e 5 columns. This should be done without arrays as they are not allowed in the assignment and only using loops. It would be much appreciated if someone helps.
saadbangashh 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
saadbangashh commented: We can use if statement and other basic tools +0
rproffitt 2,662 "Nothing to see here." Moderator
saadbangashh commented: Thank you. It worked perfectly. +0
rproffitt 2,662 "Nothing to see here." Moderator
dbfud1988 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.