Question: 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:

Following from the previous post: Write a Python program that simulates an

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!