Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this exercise, consider what the algorithm would be for writing software to draw numbers for a lottery randomly like Powerball. Design an algorithm that

For this exercise, consider what the algorithm would be for writing software to draw numbers for a lottery randomly like Powerball.

Design an algorithm that selects numbers at random (say 5 different unique numbers from a pool of numbers) and then selects one more number from a smaller pool of numbers (call this one the Powerball) every Saturday for a year.

  • What are the inputs to this program?
  • What are the constraints?
  • Research the concept of random number generation.
  • Consider the necessary data types that will be required to construct this program and be sure to consider advanced data types (e.g. arrays, linked lists, stacks and queues that may apply).
  • Execute the first 4 steps of the problem-solving process.
  • Do not write a program for step 5 rather follow your algorithm carefully on paper and make a variable chart showing the values of the variables as the program progresses.
  • Create a test plan for your program (step 6) and submit this document as the final deliverable.

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions