Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have this homework project that I'm struggling with. Please help! - ...the use of structured programming. - ...selection and repetition. - ...the random number

I have this homework project that I'm struggling with. Please help!

image text in transcribed

- ...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)

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

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago