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]
2 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]2 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
describe how to perform a task, such as following a cake recipe, using simple and clear steps PLEASE HELP
FromTheMoon [43]

Explanation:

Step 1: Choose a Recipe.

Step 4: Prep the Pans.

Step 6: Stir Together Dry Ingredients.

Step 7: Combine the Butter and Sugar.

Step 8: Add Eggs One at a Time.

Step 9: Alternate Adding Dry and Wet Ingredients.

Step 10: Pour Batter Into Pans and Bake.

Step 11: Check Cake for Doneness.

4 0
3 years ago
Fred is interested in creating marketing materials for video games. Which of the following occupations should he pursue?
Ilia_Sergeevich [38]

Answer:

video game artist

Explanation:

edg 2020

3 0
3 years ago
To use the shortcut for inserting a row,_____
lesya692 [45]
I think it is double click
8 0
2 years ago
Discuss any three Networked Applications targeted/attacked by Botnet
storchak [24]

Answer:

 Botnet is define as the number of the internet connection where each devices in the botnet connection run one and more than one bot in the network. It is basically use to performed DDOS ( Distributed denial of service) attack in the system, steal data and also allow the hacker to access different devices.

 The three networked applications that are targeted by the botnet is that:

  • Many e-mail applications are basically spammed by the users for entering the login credential by using the fake websites.
  • DDOS ( Distributed denial of service) attack is also one of the main application that are attacked by the botnet in the system.
  • Many types of banking applications that theft the data or important information which include users login details and credit or debit cards details that are hacked by the attackers in the system.  

5 0
3 years ago
Read 2 more answers
A chain of dry-cleaning outlets wants to improve its operations by using data from
kotykmax [81]
A










explanation cause it is
5 0
3 years ago
Other questions:
  • Users of an extranet can access a company or organization’s entire intranet
    8·2 answers
  • Which of the following is NOT an example of input?
    8·1 answer
  • All of the following are interpreted languages
    8·1 answer
  • The algorithm credited to Euclid for easily finding the greatest common divisor of two integers has broad significance in crypto
    11·1 answer
  • Software for creating animations
    15·2 answers
  • What is data backup short definition ​
    15·1 answer
  • Write a function that will sum all of the numbers in a list, ignoring the non-numbers. The function should takes one parameter:
    8·1 answer
  • A. All methods in an interface must be _________________ _________________________.
    5·1 answer
  • Red + blue =<br>Red + green =<br>Magenta - blue =<br>Yellow - green =<br>Cyan - blue =​
    9·1 answer
  • Discuss the ways you can perform to prevent your computer/device and its data/contents from being stolen. Define two-facto authe
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!