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 is an example of using the Internet of Things (IoT) to deliver innovative Cloud based solutions to customers?
VladimirAG [237]

An example of using the Internet of Things (IoT) to deliver innovative Cloud-based solutions to customers is: A. wearable technology that provides customers with on-the-spot personalized experiences.

<h3>What is cloud computing?</h3>

Cloud computing can be defined as a Cloud-based solutions that typically requires the use of shared computing resources over the Internet, rather than using local servers, wired-connection and hard drives to provide various services to customers.

In Computer technology, a good example of an application of the Internet of Things (IoT) to deliver innovative Cloud-based solutions to end users is wearable technology that is designed and developed to provide users with on-the-spot personalized experiences.

Read more on cloud computing here: brainly.com/question/19057393

#SPJ1

<u>Complete Question:</u>

What is an example of using the Internet of Things (IoT) to deliver innovative Cloud-based solutions to customers?

A. wearable technology that provides customers with on-the-spot personalized experiences

B. scheduled conferences with brand ambassadors to pitch customers on new offers

C. customers using a PC connected to a local network to search for recommendations

D. online surveys that gather customer input to improve services in the future

E. I don't know this yet.

8 0
2 years ago
The best way to ensure the accuracy and safety of your accounts is to:
Gekata [30.6K]
Use symbols and a different password for each one

6 0
3 years ago
What is the key function of a Scrum Master?
Reptile [31]

Answer:

The scrum master is the team role responsible for ensuring the team lives agile values and principles and follows the processes and practices that the team agreed they would use. The responsibilities of this role include: Clearing obstacles. Establishing an environment where the team can be effective.

Explanation:

8 0
4 years ago
Several surprising findings were revealed in the wake of the Target breach, providing a cautionary tale for all executives and s
Akimi4 [234]

Answer: (a) Target had security software, but the notification alerts from the software were  ignored.

Explanation:

The security software was there in target but its notification alerts being ignored was something which was not thought to have been occurred during the Target security breach, as anyone could be alerted with the notification alert.

6 0
3 years ago
Large Format Camera holds:
Leviafan [203]
Film 4x5 because it is bigger than 120 mm because mm is 120 of 1000th
5 0
3 years ago
Other questions:
  • When saving a document or drawing, you determine the destination folder in which the file will be saved by?
    6·1 answer
  • A computer with a domain name is called a
    8·2 answers
  • Rich Text Format (RTF) is a universal file format that can include information such as text style, size, and color and can be re
    12·2 answers
  • What material replaced stone as the primary materials used to make tools and machines by humans
    5·1 answer
  • G Suite for Education offers which benefits to educators? (Select all that apply.) Select All Correct Responses Android apps ava
    10·1 answer
  • What is the primary way to access applications in window 10
    7·1 answer
  • Choose the answer that best completes the
    8·2 answers
  • Hey i need some help with code.org practice. I was doing a code for finding the mean median and range. the code is supposed to b
    14·1 answer
  • 1 #include 2 3 int max2(int x, int y) { 4 int result = y; 5 if (x &gt; y) { 6 result = x; 7 } 8 return result; 9 } 10 11 int max
    12·1 answer
  • Write an Algorithm to print only numbers from 10 to n times using iteration structure
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!