Learning Goal: I’m working on a python exercise and need guidance to help me lea

Learning Goal: I’m working on a python exercise and need guidance to help me learn.FISHING OPERATION SIMULATORYour assignment is to create a Python program that simulates the financial status of a small fishing operation. The program should use the information below to determine how profitable the fishing operation is each year. Upon completion of each simulation, the program should ask the user if they would like to run another simulation and should allow the user to run an unlimited number of simulations.Most years, the fishing operation focuses on salmon, and depending on random chance (e.g., weather conditions, luck), it will produce one of the following outcomes each year:Option 1: 5% chance: excellent yield; the fishing operation earns $100,000.
Option 2: 75% chance: moderate yield; the fishing operation earns $40,000.
Option 3: 20% chance: poor yield; the fishing operation loses $10,000.
To avoid over fishing, however, the fishing operation cannot focus on salmon every year. Instead, the fishing operation rotates between salmon and crabs. In this system, the fishing operation focuses on salmon for two consecutive years, then focuses on crabs during the third year. The fishing operation then returns to fishing for salmon, and the system continues alternating between two consecutive years of salmon followed by one year of crabs. Depending on random chance (e.g., weather conditions, luck), in years the fishing operation focuses on crabs, it will produce one of the following outcomes each year:Option 1: 60% chance: good yield; the fishing operation earns $50,000.
Option 2: 40% chance: poor yield; the fishing operation loses $5,000.
These chances can be simulated based on (pseudo)random numbers. For example, suppose that you were interested in simulating whether an archer’s arrow hits a target, and the archer is generally successful in 80% of their tries. One way to simulate each try is to generate a random number between 1 and 5. If the random number is between 1 and 4 (80% of the possibilities), then we say the archer’s arrow hit the target; if the random number is 5 (20% of the possibilities), then we say the archer’s arrow missed the target. The same idea can be applied to simulating the fishing operation’s yields.Your program should simulate the profit (or loss) each year and track the total profit (the cumulative amount of profit or loss since year 1 of the simulation). For each year, print out a small financial synopsis in the structure of the following** Year # **Focus this year: [salmon or crabs]This year’s profit (or loss): $#Total profit (or loss): $#Your simulation should continue until one or more of the following “stopping conditions” is met. It is possible for more than one of the stopping conditions below to be met in the same year. If this occurs, print all stopping conditions that were met:The total profit is negative at year-end. The manager will close the fishing operation and look for a new career.
The total profit reaches at least $250,000 at year-end. The manager will happily retire.
There are five consecutive years of positive profit. The manager will happily retire.
Some considerations to note:When your program asks the user for a response, consider the possibility that the user will respond in uppercase, lowercase, or mixed case letters (“YES”, “yes”, or “Yes”, for example). Also consider the possibility of any extra whitespace (“ yEs” or “ yes “, for example). Ensure that your program can handle any of these possibilities appropriately.
Ensure that your prompts and output are crisp, professional, and well-formatted. For example, ensure that you have used spaces appropriately and checked your spelling.
Adding comments in your code is mandatory. You may decide how best to comment your code, but it is advised to include comments for sections, and logic. At minimum, please use a comment at the start of your code to describe its basic functionality.
Please use the following as a template for the tool’s expected functionality:** Year 1 **Focus this year: salmonThis year’s profit (or loss): $100000Total profit (or loss): $100000** Year 2 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $140000** Year 3 **Focus this year: crabsThis year’s profit (or loss): $-5000Total profit (or loss): $135000** Year 4 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $175000** Year 5 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $215000** Year 6 **Focus this year: crabsThis year’s profit (or loss): $50000Total profit (or loss): $265000Over $250,000 in total profit. The manager happily retires.Would you like to run another simulation (yes/no)? YeS** Year 1 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $40000** Year 2 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $80000** Year 3 **Focus this year: crabsThis year’s profit (or loss): $-5000Total profit (or loss): $75000** Year 4 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $115000** Year 5 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $155000** Year 6 **Focus this year: crabsThis year’s profit (or loss): $50000Total profit (or loss): $205000** Year 7 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $245000** Year 8 **Focus this year: salmonThis year’s profit (or loss): $40000Total profit (or loss): $285000Over $250,000 in total profit. The manager happily retires.Five consecutive years of positive profit. The manager happily retires.Would you like to run another simulation (yes/no)? no

Save your time - order a paper!

Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines

Order Paper Now