Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please do this in C++ and follow all directions. Problem1: You have four identical prizes to give away and a pool of 25 finalists. The

image text in transcribed

please do this in C++ and follow all directions.

Problem1: You have four identical prizes to give away and a pool of 25 finalists. The finalists are assigned numbers from i to 25. Write a program to randomly select the numbers of 4 finalists to receive a prize. Make sure not to pick the same number twice. For example, picking finalists 3, 15, 22, and 14 would be valid but picking 3, 3, 31, and 17 would be d, because finalist number 3 is listed twice and 3 1 is not a valid finalist number. Print the numbers of the four finalists. At the beginning, ask the user to enter an integer which you pass in to the sran function. Do not use srand(time(NULL) as this will generate random output which not pass the test cases. See the posted template on ZyBooks. cout > randomNum srand(randomNum); To receive full credit, you need to implement a function validRandomNumber0 (other than main))

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago