Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 4 In Antarctica, Pengulanu (the Great Penguin), is the main distributor of fish for the whole of PenguinWorld. Pengulanu distributes fish to each individual
Question 4 In Antarctica, Pengulanu (the Great Penguin), is the main distributor of fish for the whole of PenguinWorld. Pengulanu distributes fish to each individual penghouse based on the size of the largest penguin in the penghouse (Small, Medium, Large) and the status of the penghouse. The status of the penghouse will indicate if there is a single penguin (SP) or more than one penguin in the same penghouse; if there is more than one penguin in the same penghouse, then the status will indicate whether or not there are no young penguins present (MPNY), or one or more young penguins present in the penghouse (MPWY)). The fish are distributed based on this information, as given in the table below: Given the the size of the largest penguin in the penghouse and the status of the penghouse, output the the amount of fish distributed to that penghouse. Note that the case of the input strings shouldn't matter (e.g., Small and SMALL and smALL, should give the same results). Call the file containing your code pengulanu.py. Sample input/output: What is the size of the largest penguin? (small, medium, large) Medium What is your penghouse status? (SP, MPNY, MPWY) mpWY Your amount of fish is 180
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started