Question: Problem 2 : Worksheet Problem 4 contains annual incomes for many Texas A&M graduates. Choose a random subset of m graduates. Then report the average
Problem :
Worksheet Problem contains annual incomes for many Texas A&M graduates. Choose a random subset of m graduates. Then report the average of all incomes in the file and the average of the incomes in the subset in a message box.
Hint:
Create an array of size m called chosen, where chosen is the index of the first graduate chosen, chosen is the index of the second graduate chosen, and so on No graduates can be chosen more than once, so no two elements of the chosen array should have the same value.
Create an array of size of the total graduates called blnChosen. Use this array to keep track of if the graduate is chosen.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
