Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Temple Of Django Database Performance

Authors: Andrew Brookins

1st Edition

1734303700, 978-1734303704

More Books

Students also viewed these Databases questions