Answered step by step
Verified Expert Solution
Link Copied!

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!

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

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

3. List ways to manage relationship dynamics

Answered: 1 week ago

Question

Were they made on a timely basis?

Answered: 1 week ago

Question

Did the decisions need to be made, or had they already been made?

Answered: 1 week ago