Fishing is a relaxing and/or boring way to spend time in the great outdoors. Therefore, we...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Fishing is a relaxing and/or boring way to spend time in the great outdoors. Therefore, we are going to make a simulation of this activity with programming. You will start by asking the player which fishing rod they want to use. Their choices are shown below: Super Deluxe Fishing Rod Chance of catching a fish: 1/64 Chance of the string breaking: 1/20 Stick with a String Chance of catching a fish: 1/32 Chance of the string breaking: 1/3 Once the player makes their choice, ur program should create a loop that does the following: 0 Prompt the user if they want to keep waiting, or quit • Input should not be case sensitive If they choose to quit, end the loop If the player chooses to keep waiting, use a random number generator Ty to determine if they caught a fish (use the odds shown in the table) Fishing is a relaxing and/or boring way to spend time in the great outdoors. Therefore, we are going to make a simulation of this activity with programming. You will start by asking the player which fishing rod they want to use. Their choices are shown below: Super Deluxe Fishing Rod Chance of catching a fish: 1/64 Chance of the string breaking: 1/20 Stick with a String Chance of catching a fish: 1/32 Chance of the string breaking: 1/3 Once the player makes their choice, ur program should create a loop that does the following: 0 Prompt the user if they want to keep waiting, or quit • Input should not be case sensitive If they choose to quit, end the loop If the player chooses to keep waiting, use a random number generator Ty to determine if they caught a fish (use the odds shown in the table)
Expert Answer:
Answer rating: 100% (QA)
The simple Python program that simulates the fishing activity based on the given choices import rand... View the full answer
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
(a) An n n matrix K is the encryption matrix for the Hill cipher. Give the encryption formula. (b) The plaintext is (2, 5, 1,0). Encrypt it (show your work and the ciphertext) using the Hill cipher...
-
To make a bounce pass, a player throws a 0.60-kg basketball toward the floor. The ball hits the floor with a speed of 5.4 m/s at an angle of 65 to the vertical. If the ball rebounds with the same...
-
Smart Sales Inc. is a big box retailer, specializing in consumer electronics. Smart Sales intends to advertise that it will Match any competitors price on all Orange brand computers. The fine print...
-
Reconsider Parts (a) through (f) of Problem 2. For each "true" statement, develop a mathematical proof based on the time value of money factor equations from Table 2.6 in Chapter 2. Data from problem...
-
Pure Decorating uses a job order costing system to collect the costs of its interior decorating business. Each clients consultation is treated as a separate job. Overhead is applied to each job based...
-
How can we add Database connection script to search product item form input into MySQL Database Tables?
-
Elton Company manufactures wheel rims. The controller expects the following ABC allocation rates for 2018: (Click the icon to view the allocation rates.) Elton produces two wheel rim models: standard...
-
(b) The partnership of Fatimah and Anisa commenced on 1 January 2020 and accounts are prepared to 31 December annually. Their partnership recorded a profit before appropriation of RM60,000. The...
-
Ladder schematics is shown below. Choose which NO or NC Inputs combination will activate the Output coil. a. 11, 12, 14, 15, 16 O b. 11,17 O c. 14, 15, 16, 17 Od. 11, 12, 13, 14, 15, 16 O e. 11, 12,...
-
Create Restaurant Java Programming Using Array List: You will use cases to enter data and inside of the case 1 you should have choices using if - else conditions. If you press 1 then it will ask...
-
Your task is to make a class for a binary heap of integers, then use that class to implement heapsort. The document " Notes about Heaps " discusses the calculation-based method of storing a binary...
-
How did the expansion of scientific knowledge shape and propel the emergence and evolution of sociology as a discipline?
-
11. Use the attributes shown in Figure P3.17 and write the data dictionary using the format shown in Table P3.22. Table name: PRODUCT Primary key: PROD_CODE Foreign key: VEND_CODE PROD_CODE PROD...
-
Write the algorithm with an example: Solve Floyd's cycle finding algorithm where three runners R, T & C running on the way of 45 stoppages starts from 0, with different speed (R jumps by avoiding...
-
we have to compute the letter grades for a course. The data is a collection of student records stored in a file. Each record consists of a name(up to 20 characters), ID (8 characters), the scores of...
-
Provide an example of a fixed cost that would be relevant to a make-or-buy decision, and an example of a fixed cost that would not be relevant to such a decision.
-
Multiple-product breakeven analysis Florida Favorites Company produces toy alligators and toy dolphins. Fixed costs are $1,290,000 per year. Sales revenue and variable costs per unit are as follow:...
-
Airport Coach Service Company operates scheduled coach service from Boston's Logan Airport to downtown Boston and to Cambridge. A common scheduling service center at the airport is responsible for...
-
A newspaper recently lowered its price from $5.00 to $3.00. As it did, the number of newspapers sold increased from 240,000 to 280,000. a. What was the newspapers elasticity of demand? b. Given that...
-
Suppose average movie ticket prices are $8.50 and attendance is 1.2 billion. The price of tickets rises to $9.50 and attendance rises to 1.4 billion. a. What happened to total revenue? b. If you were...
-
Which of the following producers would you expect to support a tax on beer? Which would not? Explain your answer. a. Producers of hard liquor. Cross-price elasticity with beer: 0.11. b. Producers of...
Study smarter with the SolutionInn App