Question: help I want a python code that includes functions Week 2 - Make and test more behaviors: Person: - yearlySalary() - calculate and return the

help I want a python code that includes functions

help I want a python code that includes functions Week 2 -

Week 2 - Make and test more behaviors: Person: - yearlySalary() - calculate and return the person's yearly salary - increaseSalary(amount) - increase salary by amount - returns nothing - decreaseSalary(amount) - change salary by amount if it will not be negative - return nothing \begin{tabular}{|l|} \hline \multicolumn{1}{|c|}{ Person } \\ \hline nameagemonthlySalary \\ \hline printPerson()yearlySalaryl)increaseSalary()decreaseSalary()haveBirthday() \\ \hline \end{tabular} Output: - haveBirthday() - you decide which attribute to change - return nothing Team: - fireManager() - change name to "none" - returns nothing Testing Person behaviors: Paul earns 24000 yearly. Paul is 20 years old and earns 2500 per month. Can't decrease because monthly salary would be negative. Paul is 20 years old and earns 2000 per month. Paul is 21 years old and earns 2000 per month. - hireManager(newName) - only allow if team has no manager - otherwise prints an error message - returns nothing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!