Question: //Look for /*** TO-DO ***/ and fill in the missing statements #include UIAWN using namespace std; 6 int getMax(int h, int cap) { 7 int

 //Look for /*** TO-DO ***/ and fill in the missing statements#include UIAWN using namespace std; 6 int getMax(int h, int cap) {7 int maxVal = h[0]; 8 *** TO-DO ***/ 9 10 returnmaxVal; 11 12 13 void printChart (int h, char c, int cap,

//Look for /*** TO-DO ***/ and fill in the missing statements #include UIAWN using namespace std; 6 int getMax(int h, int cap) { 7 int maxVal = h[0]; 8 *** TO-DO ***/ 9 10 return maxVal; 11 12 13 void printChart (int h, char c, int cap, int max) { 14 for (int row = max; row >= 1; row- -) { 15 for (int col = 0; col > height[i]; cout > height[i];1. Your program asks the user for six integers and stores them in an array. Then, it asks for six characters and stores them in a second array. 2. The program then prints a bar chart made of the characters provided (with the heights corresponding to the integers. 3. Lastly, a sorted bar chart (lowest to highest) should be printed Use arrays and functions. Recursion is not necessary. Here are the title lines of the functions I used in my version: void printChart(int h, char c, int cap, int max); void swap(int h, char c, int a, int b); void sort(int h, char c, int cap); int minindex(int h, int low, int high); int getMax(int h, int cap); Sample Run: Please enter six non-negative integers. Integer #0: 3 Integer #1:5 Integer #2: 2 Integer #3: 1 Integer #4:7 Integer #5: 6 Please enter six characters.60 61 cout > chars[i]; 65 cout

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 Programming Questions!