SUMMARY:In this project, you are asked to design, develop, implement, and test a prototype (a model) for a BasketballTournament Ranking Software System. All teams randomly play each other in 10...

in the files attached


SUMMARY: In this project, you are asked to design, develop, implement, and test a prototype (a model) for a Basketball Tournament Ranking Software System. All teams randomly play each other in 10 short games. When the game time expires, the total points scored for each team will be entered into a file with the Team Number (the registration number) and the Team Name. The games may end in a tie since the games are time based. This system will read the Team Number, Team Name, and the points earned from the 10 games from a file. There is NO input by the user. The average points scored from all 10 games for each team is calculated and the teams are then divided evenly into 2 Brackets (Tier 1 and Tier 2), based on their average, for the Grand Tournament. The program will create and display three reports: 1. Total Team Points Report, which consists of the Team Number, Team Name, points scored from the 10 preliminary games, the calculated Total Points for each team, and Total Points Scored by all teams. 2. Team Ranking Report, sorted in descending order by the Team Average, consisting of the Team Rank, Team Name, Team Number, Points scored from the 10 preliminary games, Total Points for each team, Total Points for all teams, and the Average Points. The teams are ranked from highest average to the lowest average. 3. The Tournament Report consists of 2 Tournament Brackets in which the teams are divided based on their Rank after the 10 preliminary games. The brackets are Tier 1 and Tier 2. The teams will be divided into 2 even groups based on their ranking. (Assume the number of teams will be evenly divisible by 2 and for simplicity reasons, assume there are no ties.) The teams are divided into the 2 Tournament Brackets based on the Rankings. The top teams will play each other in the Tier 1 Bracket and the lower ranking teams will play each other in the Tier 2 Bracket. Detailed Specification: 1. Basketball Team Information Entry: All Teams’ information is entered into the scoring system via an input file. The file contains the Teams Registration number, the Team Name, and points earned in the 10 preliminary games. (See contents for both required files at the end of these instructions.) 2. Calculations: Calculate the Total Points for each team in the 10 preliminary games. Calculate the Overall Total Points earned by all teams. Calculate the Team Average based on the 10 preliminary games. Determine the Rank for all teams. The Rank is based on the Averages. The higher the average the better the Rank starting with #1 as the best rank. 3. Total Team Points Report: The system generates a Total Team Points Report consisting of the data read from the file, the calculated Total Points for each team, and the calculated total points for all teams. 4. Team Ranking Report Sorted by Average: The system generates a Team Ranking Report consisting of the same data in the Total Team Points Report with the additional information of Rank and Average. 5. Tournament Reports: The system generates 2 reports: Tier 1 Bracket Teams and Tier 2 Bracket Teams, (in ascending order by Rank) with each report consisting of Rank, Team Name, Total Points, Average, and Team Number. (See all Reports illustrated in the Sample Output section.) Detailed Specification: 1. Team Information Entry (25 points - Read and display data from a file — If the user is prompted to enter any data, a 0 will be recorded for the exam grade.): The system will read the Team Registration Number (an integer), Team name (a string), and the 10 scores (integers) from an input file provided. Allow the program to read the information from the file for up to 24 teams. The user does not know how many teams are in each file. The program should NOT ask the user to enter any information. This information will be displayed in the Total Team Points Reports as illustrated in the Sample Output section. 2. Calculations (25 points — each Teams’ Total Points, Overall Total Points by all teams, Average, and Rank): Calculate each teams’ total points and the total points scored by all teams in the 10 preliminary games. Calculate each team average (displayed to a tenth of a decimal). Determine the Rank of each team based on the Average (highest average is ranked as #1, next highest average is ranked as 2, etc.) (See Team Ranking Report in sample output.) 3. Team Ranking Report Sorted by Average (25 points): The Team Ranking Report will be sorted in descending order by average, displaying all the teams’ information as displayed in the sample Team Ranking Report in the Sample Output section. 4. Tier 1 and Tier 2 Tournament Bracket Teams (25 points): Display the Tier 1 and Tier 2 Tournament Bracket Teams based on the Rank of each team. (See the sample Tier 1 and Tier 2 Tournament Brackets in the Sample Output section.) Solution Design: Function decomposition: accomplish each specified task with well-designed modular functions. (You must use multiple functions in order for the code to be graded otherwise a zero will be the assigned score.) Solution integration: integrate the modules into a prototype (a working model). The program must run to be graded. If the program does not run, then a zero will be assigned for the score. Source code will only be graded using Microsoft Visual Studio 2019/2022. If you are using a Mac computer, you must test your code on a computer running the required Microsoft Visual Studio version. All coding standards should be followed. You are not required to perform data validation nor have the program repeatable. *NOTE: Your program will be tested on 2 files: teamPoints1.txt and teamPoints2.txt. Make sure Chane yar swiss oo the carfeot dls mame whem toting fie Hos It does not matter which file name you leave in your source code when you submit. I will change the file names as I grade. (Contents of both files are at the end of the instructions.) Sample Output from TEAM POINTS REPORT CST 4S Total Points won Red Birds Pride Bandits Outlaws Flex ELLE FY ET ECR] [LRuRT [MEV RE RRR nnn n WWWAWWNW RANKING REPORT Team Name 23) 4 Total Points Average/Game Bandits Yankess STS Outlaws ees Pride Nets Mavs Blue Jays 3a 396 EER 386 eM 371 37. [CET ENENENEWEWE CIS RvR RC RE RR] [Ev REE] [ERE Www www Www Ww BPNWWNWWWNW [FREER RE Ru RvR RE] TIER 1 BRACKET Team Name Total Points EO Cue 208 outlaws [ECT TIER 2 BRACKET Team Name Total Points Average Blue Jays EPSP: Sample Output from TOTAL TEAM POINTS REPORT Team Name (GI CEST All Sta Slider Bruisers Dare Devils Eliminators 24 28 44 39 38 25 38 41 25 35 ra. ETT ES wh Favre rite vt - LELRAELH Good G FE five Riv] ep SEE M RANKING REPORT Total Points Average/Game [Fre SE) ] B To 3RRRESEBRIR [aE ZCRSEE LIONS Sliders [LESTE Stingers Eliminators Good Gu TE ERRREBE Rv] [RENEE RRR FS pr 3 2 El Ba RRR G NER » R TIER 1 BRACKET Team Name CIDR EEE [ETS [Eurtes JST Bad Kids Dare Devils Sliders RR (a Team Name ICTR Stinge Eliminator CR ane LSE ET suwBuowo Contents of teamPoints1.txt file: 1 Nets 25362431423435162433 2 Mavs 19142532413635262433 3 Blue Jays 31221230282535263433 4 Select 11212225341125463423 5 Red Birds 41373533353535372832 6 Pride 31253233342535363434 7 Bandits 41423343443545364433 8 Outlaws 31324233293535364435 9 Flex 4437 353344 3525374437 10 Yankess 34552233442345544333 Contents of teamPoints2.txt file: 1 All stars 21333223242825363423 2 Sliders 25243243443935264434 3 Bruisers 22322933382535362426 4 Dare Devils 27223229384137394439 5 Eliminators 34272543 253535273835 6 Stingers 44352838343525363423 7 Cleats 31423543443545363428 8 Bad Kids 31322943393545362943 9 Dazzlers 42273533343525284441 10 Ranglers 45373843443535374443 11 Good Guys 29272533343525273443 12 New Kids 33473833344342474343
Dec 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here