Question: Task 2: Baseball Bonuses Write a program called bbbonus.py to calculate and display a professional baseball player's bonus at the end of a season. The
Task 2: Baseball Bonuses Write a program called bbbonus.py to calculate and display a professional baseball player's bonus at the end of a season. The bonus is calculated as follows: 1. All-Star Game appearance $25,000 2. Regular season MVP-$75,000 3. World Series MVP= $100,000 4. Gold Glove award $50,000 5. Silver Slugger award $35,000 6. Home run champ $25,000 7. Batting average champ $25.000 Prompt the user with a question related to each of the above categories using successive if state- ments and augmented assignment. If the response is y for 'yes', add the bonus to the total: other- wise, if the response is n, move to the next question. You can include everything in the function main) and then use a function call to mainO The following shows the proper behavior of the program: : For each of the following, enter y for yes and n for no. : All-Star Game appearance? y ) Regular season MVP? n World Series MVP? n s Gold Glove avard? n Silver Slugger award? y 7 Home run champ? y Batting average champ? n This baseball player' a bonus was $85000. After your program is working comectly, save it to folder Lab in CS11l and then show it to your TA for credit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
