Question: Given integer variables seedval, smallest TourGroup, and largest TourGroup, seed the pseudorandorn number generator with seedVal. Then, output two random group sizes in the range

Given integer variables seedval, smallest TourGroup, and largest TourGroup, seed the pseudorandorn number generator with seedVal. Then, output two random group sizes in the range smallestTourGroup to largestTourGroup inclusive. Lastly, given a total of 92 people, output the number of people that are not in a group. End each output with a newline. Ex. If smaliest TourGroup is 2 and largest TourGroup is 11, then a possible output is: B 6 78 Note: The number of people that are not in a group is 92 - group1-group2 Given integer variables seedval, smallestTourGroup, and largest TourGroup, seed the pseudorandom number generator with seedval. Then, output two random group sizes in the range smallestTourGroup to largestTourGroup inclusive. Lastly, given a total of 92 people, output the number of people that are not in a group. End each output with a newline. Ex. If smallestTourGroup is 2 and largestTourGroup is 11 , then a possible output is: 8 6 78 Note: The number of people that are not in a group is 92 - group1 - group2. 678910111213141516171819intseedVal;intsmatlestTourGroup;intlargestTourGroup;intgroup;intgroup2;intgroup3;cinseedval;cinsmallestTourGroup;cinlargestTourGroup;return0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
