Please note: You code will be checked for originality. If you use someone else' taken from the Internet then your prac will come under scrutiny for a potential co result in zero marks begin awarded. Required knowledge for the prac. This prac refers to horizontal and vertical histograms. For the purposes of this pr histogram uses bars that travels from left to right and a vertical histogram refers with bars that travel from the bottom upwards. See the following diagrams th concept: 10: 16

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
The purpose of this assignment is for you to use functions and libraries of functions as well as
working with fixed length one-dimensional arrays.
Please note: You code will be checked for originality. If you use someone else's code or code
taken from the Internet then your prac will come under scrutiny for a potential copy, which may
result in zero marks begin awarded.
Required knowledge for the prac.
This prac refers to horizontal and vertical histograms. For the purposes of this prac a horizontal
histogram uses bars that travels from left to right and a vertical histogram refers to a histogram
with bars that travel from the bottom upwards. See the following diagrams that depicts this
concept:
|@ ! # @ ! # @ ▪ è @
10 217 9 413 915111113 615 31214 211 8 8
910111213141516171819
The diagram on the left is an example of a horizontal histogram. The one on the right is an
example of a vertical histogram for the same data set.
###非
Transcribed Image Text:The purpose of this assignment is for you to use functions and libraries of functions as well as working with fixed length one-dimensional arrays. Please note: You code will be checked for originality. If you use someone else's code or code taken from the Internet then your prac will come under scrutiny for a potential copy, which may result in zero marks begin awarded. Required knowledge for the prac. This prac refers to horizontal and vertical histograms. For the purposes of this prac a horizontal histogram uses bars that travels from left to right and a vertical histogram refers to a histogram with bars that travel from the bottom upwards. See the following diagrams that depicts this concept: |@ ! # @ ! # @ ▪ è @ 10 217 9 413 915111113 615 31214 211 8 8 910111213141516171819 The diagram on the left is an example of a horizontal histogram. The one on the right is an example of a vertical histogram for the same data set. ###非
Program
For this program you must make use of user defined libraries with functions defined and
declared in the GraphSpace namespace. Activities and functions in the program should make
use of a fixed length array of twenty (20) whole numbers.
Write a C++ program that will accomplish each of the following requirements:
1. The program should make use of a menu system. Each menu option can roughly be
mapped to the rest of the requirements in this list.
2. The user must have the ability to initiate a process in the program to reset the value
of each array item to zero.
3. The user must allow the program to fill an array with random whole numbers in
between a lower bound number and upper bound number provided by the user.
4. The user must have an option that will force the program to output a horizontal
histogram of the array values.
5. The user must have an option that will force the program to output a vertical
histogram of values in the array.
6. The program should run until the user specifically chooses to quit the program.
7. The histogram bars must use three different characters, depending on range of
values in the histogram.
a. Bars that indicate values in the bottom third must use a '!' character.
b. Bars that indicate values in the middle third must use a @ character.
c. Bars that indicate values in the top third must use a '# character.
Transcribed Image Text:Program For this program you must make use of user defined libraries with functions defined and declared in the GraphSpace namespace. Activities and functions in the program should make use of a fixed length array of twenty (20) whole numbers. Write a C++ program that will accomplish each of the following requirements: 1. The program should make use of a menu system. Each menu option can roughly be mapped to the rest of the requirements in this list. 2. The user must have the ability to initiate a process in the program to reset the value of each array item to zero. 3. The user must allow the program to fill an array with random whole numbers in between a lower bound number and upper bound number provided by the user. 4. The user must have an option that will force the program to output a horizontal histogram of the array values. 5. The user must have an option that will force the program to output a vertical histogram of values in the array. 6. The program should run until the user specifically chooses to quit the program. 7. The histogram bars must use three different characters, depending on range of values in the histogram. a. Bars that indicate values in the bottom third must use a '!' character. b. Bars that indicate values in the middle third must use a @ character. c. Bars that indicate values in the top third must use a '# character.
Expert Solution
steps

Step by step

Solved in 3 steps with 7 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY