1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
IgorLugansk [536]
3 years ago
5

Write a program that simulates a fishing game. In this game, a six-sided die is rolled to determine what the user has caught. Ea

ch possible item is worth a certain number of fishing points. The points will remain hidden until the user is finished fishing, and then a message is displayed congratulating the user depending on the number of fishing points gained.
Computers and Technology
1 answer:
m_a_m_a [10]3 years ago
3 0

Answer:

Answered below

Explanation:

//Python code

numberOfCasts = 3

j = 0

fishingPoints = 0

sum = 0

while j < numberOfCasts:

dieNum = randint(1 , 6)

if dieNum ==1:

fishingPoints = 2

elif dieNum == 2:

fishingPoints = 4

elif dieNum == 3:

fishingPoints = 6

elif dieNum == 4:

fishingPoints = 8

elif dieNum == 5:

fishingPoints = 10

elif dieNum ==6:

fishingPoints = 12

sum += fishingPoints

j++

if sum > 30:

print ("Great catch")

elif sum > 10 and sum <= 30:

print("Good catch")

else:

print ("Bad day")

You might be interested in
What makes it possible for e-mail to be sent and received on a wide variety of devices, including cell phones, PDAs, laptops, an
Usimov [2.4K]

Answer:

Compatibility.

Explanation:

Email or electronic mail is a messaging system that allows for transmission of digital or electronic mails to computers within and to other networks through the internet.

Email applications are web based applications and are hosted on servers. The POP (post office protocol) and IMAP (internet messaging access protocol) are used to message the mails sent to a client on a server. The application is written with standards and protocols to ensure compatibility in all types of device form factor, so an email can be view in a laptops, smartphones etc.

4 0
3 years ago
True or False <br><br> Rootkits are only made by black-hat hackers.
Kipish [7]
True rookies are only made by black hat hackers I am not sure I hope this will help
4 0
3 years ago
How can goal setting help with academic performance?
rosijanka [135]
Im pretty sure the answer is b.
8 0
3 years ago
when a sender encrypts a message using their own private key, what security service is being provided to the recipient?
Rudik [331]

asymmetric encryption

4 0
3 years ago
One of the most common uses of spreadsheet programs are communicating with others. O editing images and photos. O tracking and m
Mama L [17]

Answer:        tracking and manipulating data.

Explanation: A spreadsheet is nothing more than a large ledger like the ones accountants and office workers used years ago. It was a ruled paper that data and information was entered on in order to keep track of money, inventory, and other information.  Adding or subtracting from one column would change the totals and values overall. Now, with computers we have the electronic version and store the data on disc, flash drive or other connected media.

8 0
3 years ago
Read 2 more answers
Other questions:
  • Match the following tasks with their appropriate timing.
    8·1 answer
  • In a formatted text file, ________ signal(s) the beginning and end of a formatting command.
    12·1 answer
  • What is the purpose of a search engine?
    10·2 answers
  • Which of the following circuits has an equivalent resistance of 30 Ω?
    8·2 answers
  • Mila received a new DVD player that she is trying to connect to the back of her television by feel alone. The first stage of mem
    11·1 answer
  • Write a function isRed() that accepts a string parameter and looks for the presence of the word ‘red’ in the string. If it is fo
    5·2 answers
  • In the following data definition, assume that List2 begins at offset 2000h. What is the offset of the third value (5)?
    10·1 answer
  • Which feature should be used prior to finalizing a presentation to ensure that audience members with disabilities will be able t
    13·2 answers
  • 13. A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails".
    11·1 answer
  • You are between flights at the airport and you want to check your email. Your wireless settings show two options:
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!