Question: Tiered baseball player salaries. Create a program that will calculate the salary a player will earn based on the following business rules. Be sure to

Tiered baseball player salaries. Create a program that will calculate the salary a player will earn based on
the following business rules. Be sure to refer to the general programming guidelines listed above. Name your project:
TieredPlayerSalaryViaIF - Your Name
Tier 1: For 1 through 49 hits in a season, the player earns $17,500 per hit for ALL hits.
Tier 2: For 50 through 99 hits, the player earns $20,000 per hit for ALL hits.
Tier 3: For 100 through 149 hits, the player earns $22,500 per hit for ALL hits.
Tier 4: For 150 or more hits, the player earns $25,000 per hit for ALL hits.
Then consider All Star and MVP (most valuable player) awards:
- If a player is neither an All Star NOR a MVP designation, then add 0% to the tiered salary you calculated above
- If a player is both an All Star AND and a MVP, then add 25% to the tiered salary you calculated above
- If a player is only one of All Star OR a MVP, then add 20% to the tiered salary you calculated above
Note that this is a 'simple' calculation - in that once a player reaches the threshold for the next $ level per hit, the player
earns that rate for ALL hits they had. For example, if Player1 had 149 hits in a season, he will earn
149*22,500= $3,352,500. However, if that Player1 would have produced one more hit (150), he would have earned
150*25,000= $3,750,000. Then, consider the impact of the All Star and MVP attributes on the salary calculation
mentioned above. I need a design picture of this assignment.

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!