Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ language. The prompt and the code I had written is pictured. Please correct the code. In case it helps, the tested input was: 1677045528

C++ language. The prompt and the code I had written is pictured. Please correct the code. In case it helps, the tested input was: 1677045528 9 16. The expected output based on the input was: 10 16 14 14 67. The program outputted: 16 15 10 12 68.image text in transcribed

Given integer variables seedVal, minTable, and maxTable, seed the pseudorandom number generator with seedVal. Then, output four random table sizes in the range minTable to maxTable inclusive. Lastly, given a total of 121 people, output the number of people that are not at a table. End each output with a newline. Ex: If minTable is 9 and maxTable is 16 , then a possible output is: 15 11 12 13 70 Note: The number of people that are not at a table is 121 - table 1 - table2 - table3 - table4

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

3.What are the Importance / Role of Bank in Business?

Answered: 1 week ago