Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!