Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started