Hello I need the c# code for this program please 2. (90 Points) Tiered baseball player salaries.
Fantastic news! We've Found the answer you've been seeking!
Question:
Hello I need the c# code for this program please
Transcribed Image Text:
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: 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:
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
A rectangular plate lying on the xy plane has sides 2 in the x direction and in the y direction, thickness h in direction z, and is made of a material with Young's modulus E, Poisson's ratio v, and...
-
Grouper Company provides you with the following balance sheet information as of December 31, 2017. In addition, Grouper reported net income for 2017 of $16,000, income tax expense of $3,200, and...
-
Discuss how using an object-oriented tool can facilitate the use of evolutionary development methodologies in the design of DSS.
-
Determine if the mixed method aspect is concurrent, sequential,, or nested. Develop a hypothetical research scenario that would necessitate the use of the Mixed Method A-B-A Design. The research will...
-
Given the following activities required for staging a community play on Independence Day, (a) Construct an AON diagram. (b) Determine the earliest completion time for the play and the critical path....
-
Hybrid agreements (also called wait-and-see agreements), which usually allow the issuer first priority to buy the interest and other stockholders or partners the second-place option to buy. Such...
-
For the following system to be consistent, 5x- 6y -23x+32y 4x - 7y we must have, k + 5z + kz + 5z = - - 5 - 16 - 2
-
Prepare adjusting entries for the following: j . Of the rent that was paid in transaction e above, $ 9 , 1 0 0 applies to 2 0 2 4 . All of the rent that was prepaid at the beginning of 2 0 2 3 has...
-
Perform research on two different emergency management or homeland security agency websites. Compare and contrast the layouts and the ease of which information is obtained from both sites. Comment on...
-
What are some strategies that you have used to incorporate the native languages and cultures?
-
Discuss According to Jrgen Habermas, how has the public sphere transformed communication?
-
The following balance sheet data are for Brintany Coastal Catering Service, a corporation at May 31, 2019: Accounts Receivable $27,300 Accounts payable $10,200 Notes Payable 29,000 Cash 16,300...
-
A student sneaks a glass of cola onto a roller coaster ride. The glass is cylindrical, twice as tall as it is wide, and filled to the brim. He wants to know what percent of the cola he should drink...
-
Solve each equation. x 3 - 6x 2 = -8x
-
Calculate the amount of the child and dependent care credit allowed for 2012 in each of the following cases, assuming the taxpayers had no income other than the stated amounts. a. William and Carla...
-
Leslie and Leon Lazo are married and file a joint return for 2012. Leslie's Social Security number is 466-47-3311 and Leon's is 467-74-4451. They live at 143 Snapdragon Drive, Reno, NV 82102. For...
-
Ken paid the following amounts for interest during 2012: Qualified interest on home mortgage...........................................$4,700 Auto loan...
-
Study the density matrix and the partition function of a system of free particles, using the unsymmetrized wavefunction (5.4.3) instead of the symmetrized wavefunction (5.5.7). Show that, following...
-
Show that in the first approximation the partition function of a system of \(N\) noninteracting, indistinguishable particles is given by \[ Q_{N}(V, T)=\frac{1}{N ! \lambda^{3 N}} Z_{N}(V, T), \]...
-
Show that, for any law of distribution of molecular speeds, \[ \left\{\langle uangle\left\langle\frac{1}{u}ightangleight\} \geq 1 \] Check that the value of this quantity for the Maxwellian...
Study smarter with the SolutionInn App