Question: Write the C++ code to do the following: Each student should work on this separately but can ask each other for help. Program 1: 1.

 Write the C++ code to do the following: Each student should

Write the C++ code to do the following: Each student should work on this separately but can ask each other for help. Program 1: 1. Create a vector of 50 integers and initialize it to zero. 2. Generate a 100000 random numbers between 0 and 50 and keep track of the number of occurrences of each number in the vector created in step one. Do not use a decision statement to determine which vector location to update the count. 3. Write a function to display the vector 4. Write a function to retrieve the max value from the vector 5. Write a function to retrieve the min value from the vector. 6. Write a function to sum all values in the vector. What should the sum be? Push to git when by midnight on June 20, 2017 to get full credit. To get 15% extra credit push to git by 5PM this afternoon

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