Professional Documents
Culture Documents
Lot To Generator
Lot To Generator
Lot To Generator
select lottery numbers. The system will initially allow the user to enter their forename and
surname. Once entered a menu of options will be presented to the user with three choices:
Option 1
will generate a username in the format of first initial of forename and your surname combined.
The username must be displayed in uppercase
.Option 2
Option 3
Quit/Exit the application The input menu is required to run (loop) until the user enters the quit
option
----
myChoice - MenuPicker(); - Prompt that holds value of input box from user, will be in the form of
an Interger
lottery - Opt2(); used to produce the lottery random number. Maths.floor to round
Maths.random to generate random number
----
Functions:
menuOptions() - Displays menu for option 1,2 and 3. Button to launch menuPicker()
menuPicker() - Repeats indefinetley until the user selects quit option 3. Method call dependant
on user.