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


The purpose of this assignment is for you to use functions and libraries of functions as well as<br>working with fixed length one-dimensional arrays.<br>Please note: You code will be checked for originality. If you use someone else's code or code<br>taken from the Internet then your prac will come under scrutiny for a potential copy, which may<br>result in zero marks begin awarded.<br>Required knowledge for the prac.<br>This prac refers to horizontal and vertical histograms. For the purposes of this prac a horizontal<br>histogram uses bars that travels from left to right and a vertical histogram refers to a histogram<br>with bars that travel from the bottom upwards. See the following diagrams that depicts this<br>concept:<br>|@ ! # @ ! # @ ▪ è @<br>10 217 9 413 915111113 615 31214 211 8 8<br>910111213141516171819<br>The diagram on the left is an example of a horizontal histogram. The one on the right is an<br>example of a vertical histogram for the same data set.<br>###非<br>

Extracted 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<br>For this program you must make use of user defined libraries with functions defined and<br>declared in the GraphSpace namespace. Activities and functions in the program should make<br>use of a fixed length array of twenty (20) whole numbers.<br>Write a C++ program that will accomplish each of the following requirements:<br>1. The program should make use of a menu system. Each menu option can roughly be<br>mapped to the rest of the requirements in this list.<br>2. The user must have the ability to initiate a process in the program to reset the value<br>of each array item to zero.<br>3. The user must allow the program to fill an array with random whole numbers in<br>between a lower bound number and upper bound number provided by the user.<br>4. The user must have an option that will force the program to output a horizontal<br>histogram of the array values.<br>5. The user must have an option that will force the program to output a vertical<br>histogram of values in the array.<br>6. The program should run until the user specifically chooses to quit the program.<br>7. The histogram bars must use three different characters, depending on range of<br>values in the histogram.<br>a. Bars that indicate values in the bottom third must use a '!' character.<br>b. Bars that indicate values in the middle third must use a @ character.<br>c. Bars that indicate values in the top third must use a '# character.<br>

Extracted 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.
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here