Question: Hello I need the c# code for this program please 2. (90 Points) Tiered baseball player salaries. Create a program that will calculate the salary

Hello I need the c# code for this program please

2. (90 Points) Tiered baseball player salaries. Create a program that will

   

2. (90 Points) 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: Tiered Player SalaryVialF - 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 ealculated 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 ene 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. INPUT: Have the user enter the player's name, number of hits, one checkbox to indicate if they are an All Star and a second checkbox to indicate if they are a MVP. Then use a Calculete button to process the data. Process the data only if the user enters a player's name (any non-space Characters typed in constitutes entering a name). Process the data only if the user entered a valid hit count. A vellid hit count is an integer that is greater than zero, but is less than or equal to 300. Validate the hit count programmatically - do not use a masked textbox. Use a validation method we covered other than try..catch to perform the validation. Add a Clear button to clear the data entry fields, checkboxes and calculations. PROCESSING/OUTPUT: Geleulate the player's earnings based on the Tier they achieved, and display the calculated salary and Tier number. Use en #... decision structure to determine the Tier number and $ per hit amount (do not use a switch (..case...) decision structure).-Determine any additional salary amount based on All Star/MVP checkbox settings. In addition to allowing the entry of the current player name, hits details and calculating the current player's salary based on the above, also display a separate summary set of information on the window showing the leading player's name. number of hits, salary and Tier number for the player who has had the most hits of all players processed so far, since the Window was opened or since the Clear button was last clicked. You only need to keep track of the ONE leading player. not all players entered in. If there are one or more ties, the first player entered who had the most hits will be the leader. 3. (30 Points Optional Extra Credit) Read this assignment at least 4 days ahead of when it is due. IF (and only if) today's date is 4 or more days before this assignment's due date, login to Canvas, locate the Assignment named "Misc HW Extra Credit Accumulator" and send me a text box entry submission saying 'Homework - Decision Structures A-I read it early!" saying that you read through this assignment at least 4 days in advance of it being due. If for example, the assignment is due on a Thursday 1/14 and today is the Sunday 1/10 prior, then that IS considered 4 days prior to the due date. However, Monday 1/11 or afterward DOES NOT qualify since it is only 3 days prior to the due date. Keep in mind throughout the course you may have multiple submissions to the "Misc HW Extra Credit Accumulator" assignment. Take all of your completed project folders above and copy them into a folder named:

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 Programming Questions!