Computers and Technology, 03.03.2021 15:10 rabion8789
LotteryChecker() is a function which will help determine the prize money of a lottery guess. It will take in the lottery number and the user guess as input, updates the variable prizeMoney accordingly and returns it. You can assume both lottery number and the user guess are two-digit numbers, from 10 to 99, both inclusive.
Python solution?
The prize money is assigned based on the following rules:
If only one digit in the user’s guess matches any digit in the lottery number, the award is $1,000
If both the digits in the user’s guess match both the digits in the lottery number but in the wrong order, the award is $3,000.
If the user’s guess matches the lottery number in the exact order, the award is $10,000
The common mistakes include logic errors ( e. g, forgetting some cases). There is no problem with the grader, please think about whether your method covers all cases carefully.
Answers: 3
Computers and Technology, 22.06.2019 00:40
Write a function 'music_func' that takes 3 parameters -- music type, music group, vocalist -- and prints them all out as shown in the example below. in case no input is provided by the user, the function should assume these values for the parameters: "classic rock", "the beatles", "freddie mercury". for example: input: alternative rock,pearl jam,chris cornell output: the best kind of music is alternative rock the best music group is pearl jam the best lead vocalist is chris cornell note: the print statements will go inside the for example: print("the best kind of music is"
Answers: 2
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
LotteryChecker() is a function which will help determine the prize money of a lottery guess. It will...
Business, 23.07.2019 21:50
Health, 23.07.2019 21:50
Biology, 23.07.2019 21:50
Mathematics, 23.07.2019 21:50
Chemistry, 23.07.2019 21:50
Mathematics, 23.07.2019 21:50
History, 23.07.2019 21:50
Mathematics, 23.07.2019 21:50
Health, 23.07.2019 21:50
Chemistry, 23.07.2019 21:50