Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following from the previous post: Write a Python program that simulates an online TOTO betting application. Make use of the functions in part (a) and

Following from the previous post:

image text in transcribed

Write a Python program that simulates an online TOTO betting application. Make use of the functions in part (a) and (b), where possible. TOTO Menu 1. Ticket Entry 2. Quick Pick 0. Exit Enter option: Your program should present the above menu until the buyer enters 0 to exit. Option 1 will allow the buyer to enter their 6 picks for TOTO. Your application must display appropriate messages to inform the buyer if the 6 picks can form a valid ticket. Option 2 allow instruct the computer to randomly selects 6 unique numbers (1-49) for the buyer, and then display the TOTO ticket to the buyer. Sample program executions are follows: TOTO 1. Ticket Entry 2. Quick Pick 0. Exit Enter option: 1 Enter pick 1: 6 Enter pick 2: 12 Enter pick 3: 18 Enter pick 4: 24 Enter pick 5: 36 Enter pick 6: 42 Your TOTO ticket [6,12,18,24,36,42] is valid NGAPORE UNIVERSITY OF SOCIAL SCIENCES (SUSS) Page 5 of 14 T133 Tutor-Marked Assignment TOTO Menu 1. Ticket Entry 2. Quick Pick 0. Exit Enter option: 1 Enter pick 1: 6 Enter pick 2: 12 Enter pick 3: 18 Enter pick 4: 24 Enter pick 5: 36 Enter pick 6: 6 [6,6,12,18,24,36] is an Invalid TOTO ticket TOTO Menu 1. Ticket Entry 2. Quick Pick 0. Exit Enter option: 2 This is your lucky ticket: [6,17,22,23,34,41] TOTO Menu 1. Ticket Entry 2. Quick Pick 0. Exit Enter option: 0 Good luck to you!! ( 6 marks)

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

Database Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions

Question

Write the difference between sexual and asexual reproduction.

Answered: 1 week ago

Question

What your favourite topic in mathematics?

Answered: 1 week ago

Question

Briefly describe vegetative reproduction in plants.

Answered: 1 week ago