1. Lotto - A lottery program made of 6 random numbers (Lotto 6/42). Design a program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Lotto - A lottery program made of 6 random numbers (Lotto 6/42). Design a program that: A. Generates the 6 random numbers for the winning combination. B. Display the winning numbers to make it easier to check. C. Display the prize of the lotto buyer based on the following: D. Winning Numbers (in any order) Output Prize Congratulations! You 6 winning numbers P9 Million won Congratulations! You 5 winning numbers P25,000.00 4 winning numbers P1,000.00 3 winning numbers P20.00 2-0 numbers P0.00 won Congratulations! You won Congratulations! You won Better Luck next time Example output: 1. Buyer# 1. Enter Lottery Number: 6 1. Buyer# 1. Enter Lottery Number: 12 1. Buyer# 1. Enter Lottery Number: 17 1. Buyer# 1. Enter Lottery Number: 27 1. Buyer# 1. Enter Lottery Number: 1 1. Buyer# 1. Enter Lottery Number: 36 Your Lottery Number are: 6 12 17 27 1 36 The Winning Numbers are: 12 17 36 16 24 42 Match Numbers: 12 17 36 Your Prize is: P20.00 Congratulations! You won 1. Lotto - A lottery program made of 6 random numbers (Lotto 6/42). Design a program that: A. Generates the 6 random numbers for the winning combination. B. Display the winning numbers to make it easier to check. C. Display the prize of the lotto buyer based on the following: D. Winning Numbers (in any order) Output Prize Congratulations! You 6 winning numbers P9 Million won Congratulations! You 5 winning numbers P25,000.00 4 winning numbers P1,000.00 3 winning numbers P20.00 2-0 numbers P0.00 won Congratulations! You won Congratulations! You won Better Luck next time Example output: 1. Buyer# 1. Enter Lottery Number: 6 1. Buyer# 1. Enter Lottery Number: 12 1. Buyer# 1. Enter Lottery Number: 17 1. Buyer# 1. Enter Lottery Number: 27 1. Buyer# 1. Enter Lottery Number: 1 1. Buyer# 1. Enter Lottery Number: 36 Your Lottery Number are: 6 12 17 27 1 36 The Winning Numbers are: 12 17 36 16 24 42 Match Numbers: 12 17 36 Your Prize is: P20.00 Congratulations! You won
Expert Answer:
Answer rating: 100% (QA)
Heres the Python program that implements the Lotto simulation Py... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A retail store manager knows the average weekly sales revenue for last year was $42 000. The store manager also knows that weekly sales are subject to many factors and show a large amount of...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
On January 1, 2012, Push Company purchased an 80% interest in the capital stock of Way-Down Company for $820,000. At that time, WayDown Company had capital stock of $500,000 and retained earnings of...
-
What would a horizontal aggregate supply curve imply about producer behavior? How about a vertical AS curve?
-
The Jeep Renegade Sport 4 * 4 vehicle gets 23 miles per gallon (mpg) in city driving and 32 mpg in highway driving. The car is driven 403 mi on 14 gal of gasoline. How many miles were driven in the...
-
A project has been selected for implementation. The net cash flow (NCF) profile associated with the project is shown below. MARR is 10 percent/year. a. What is the annual worth of this investment? b....
-
Polk Company manufactures basketballs. Materials are added at the beginning of the production process and conversion costs are incurred uniformly. Production and cost data for the month of July 2017...
-
Define and comprehend the concept of data base and its types. 7. Briefly discuss Database Management Systems. 8. Enumerate and briefly discuss the key concepts of Database Management Systems....
-
The following presents Oscar Equipment Companys draft financial statements for December 2022, with comparative figures for 2021. Amounts are in $000s. During 2022 (2021), the company declared and...
-
Ambrosia Farm Inc. (ABI) owns several large apple orchards. Once harvested, the apples are considered agricultural inventory and can be held in cold storage for up to 10 months. How are the apples...
-
How much money will it cost to drive a school bus 75.00 miles if it gets 6.500 miles per gallon and gas costs $2.459/gallon? Tap here or pull up for additional resources 1 3 4 6 7 8 9 +/- 25 5 O $ X...
-
If I was to confiscate a phone from a student because they were violating the no cell phone use policy at my school, and saw that there were visible sexually inappropriate messages on it I would have...
-
Today is your 21st birthday and your bank account balance is $15,000. Your account is earning 4.5% interest compounded monthly. How much will be in the account on your 50th birthday?
-
What kind of punishment would a utilitarian say we should give a robber? Please provide a RIGOROUS explanation of why? Consider the following statement: "The government should protect the public from...
-
Anita bought a new computer system. To pay for the system, she borrowed $5730 from the credit union at 8 % interest for 115 days. Find the interest. 5
-
A cobalt (ii) solution wants to be examined by titration with 0.0415 M EDTA solution at ph 6.0. What will be the concentrations of cobalt(ii) ions in a titration of 30.0 ml and 0.0193 M cobalt (II)...
-
Select a mass spectrometric technique with the highest mass resolution for identifying an unknown compound being eluted from a liquid chromatography column
-
x1 = 15, s1 = 2, n1 = 15, . x2 = 12, s2 = 5, n2 = 15 a. Two-tailed test, = 0.05 b. 95% confidence interval We have provided summary statistics for independent simple random samples from two...
-
Following is a gender frequency distribution for students in Professor Weiss's introductory statistics class. Gender Frequency Male .......... 17 Female ......... 23 Two students are selected at...
-
The data from Exercise 4.66 for percentage of gross domestic product (GDP) spent on health care and life expectancy, in years, for selected countries are on the WeissStats CD. Do the required parts...
-
Given the following information, answer the questions about this project: a. Draw the network as a Gantt chart. b. What is the critical path? Which activities have slack time? c. What would happen if...
-
Develop a Gantt chart with the following information. What is the expected duration of the project? What is the critical path? Activity Expected Duration Predecessors A BL 12 8 None None C 5 None D...
-
Consider a project with the following information. Construct the project activity network using AOA methodology and label each node and arrow appropriately. Identify all dummy activities required to...
Study smarter with the SolutionInn App