Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help! - ...the use of structured programming. - ...selection and repetition. - ...the random number generator and related functions. Problem: You are tasked to
Please help!
- ...the use of structured programming. - ...selection and repetition. - ...the random number generator and related functions. Problem: You are tasked to create a program that will make use of selection, looping, and user functions. Your_ program is called the OzzieWinner and UNF plans on using it to randomly pick ticket numbers that match those of guests at special events such as basketball games. The program should ask the user to enter in the number of ticket number and prize combinations they want, zero to quit. The program should then ask what the range of the random ticket numbers should be. Not every event sells out. The winning numbers will then randomly win one of the following prizes: UNF shirt, A free pizza, Season Passes, A large beverage, and last but not least $50 OzzieBucks. The program should print out a list with the winning ticket number, an alternate ticket number and the prize associated with that ticket's draw. You should evaluate your processes and determine which if any steps of the program would benefit from a user function. For example, perhaps a function to draw a ticket number or a function to determine what prize has been randomly selected. Yet other examples could be as simple as getting inputs from the user with messaging. You will not need to avoid repeating winners (the same ticket number being chosen more than once). Example of a working program's inputs and outputs. (Yours may differ in verbiage)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