icon

UseTopicwritingscode to get 5% OFF on your first order!

Pickleball Tournament

(60 points) Two SHSU Pickleball teams, one is a faculty team and the other one is a student team, organized their very first tournament. Each player played against an opponent from another school. Write a program that prompts the user to enter pickleball tournament game results. The scores should be saved in two different arrays, named Faculty[] and Student[].
The program should display:

a.    the percentage of games won by Faculty,
b.    the highest total score (Faculty and Student combined) of all the games and the corresponding game number,
c.    the largest deficit of Student and corresponding game number.

Output:
In Game Round 1, winning Percentage of Faculty is: 25%
In Game Round 1, the highest scored game was 20 points in the first game.
In Game Round 1, the largest deficit of Students was 6 points in the 2nd game.

(40 points) Based on the tournament scores, store the winners of that round into another array (Based on the above example those players will be Faculty[0], Student[1], Student[2], and Student[3]). Once an array is set up, randomly draw semi-final matches. Once matches are drawn, randomly pick the winner of the semi-final games (assign the Faculty winner player a score of 11) and then randomly assign a value between 0 and 4 to the Student.
Now your extended program should display:

d.    the number of Student players made it to finals,
e.    the percentage of games won by Student (this should include results from Round 1).

Output:
Only 1 player from Student made it Finals
Overall, winning Percentage of Student is: 67%

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes