Mapa mental
Dance Competition Program
Contenido del mapa
Dance Competition Program
Define and assign variables
- Runs main()
- Asks user if they want to enter a score
- Runs enterScores()
- Asks user to enter round number, couple name, judge name and score for the couple from said judge
- Runs whichJudge()
- Runs whichTeam()
- Adds the score to the appropriate place in tempScores
- Returns to main()
- Adds the score to the appropriate place in tempScores
- Runs whichTeam()
- Runs whichJudge()
- Asks user to enter round number, couple name, judge name and score for the couple from said judge
- Runs enterScores()
- Asks user if they want to calculate scores
- Runs calcScores()
- Runs whichRound()
- Moves to the right array for the high and low scores for a certain round
- States the current number of competitors for that round -1 (so we can reference this later)
- Loops for all 6 couples
- Define highScore, lowScore and totalScore to their base values (reset for each couple)
- Loops for all 5 judges
- Loops for all 5 judges
- Runs ScoreCalculator()
- Writes all scores to a text file - dividing it into scores we add together, high score, low score and total score.
- Save and closes text file
- Save and closes text file
- Adds remaining scores together to create totalScore
- Writes all scores to a text file - dividing it into scores we add together, high score, low score and total score.
- Removes highest and lowest score from tempScores so they aren't included in the calculation of the total score
- Runs ScoreCalculator()
- Finds which scores are the highest and lowest scores
- Loops for all 5 judges
- Loops for all 5 judges
- Asks user if they want to find the eliminated couples
- Returns to main()
- Runs detElim()
- Loops for each competitor
- Determines if there is a tie for who won the round
- Determines if they have won the round with no tie
- Determines if they have tied for the second lowest score
- Determines if they have one of the 2 lowest scores
- Runs tieBreakerLose()
- Takes highest and lowest scores of each couple in the tie
- Adds the high and low scores of each couple together (team1 high and low then team 2 high and low scores)
- Compares the total and whoever has the lower score of higher and lower is returned as the second lowest scorer and their score as the second lowest score
- Adds the high and low scores of each couple together (team1 high and low then team 2 high and low scores)
- Takes highest and lowest scores of each couple in the tie
- Determines if they have one of the 2 lowest scores
- Determines if they have tied for the second lowest score
- Runs tieBreakerWin()
- Takes highest and lowest scores of each couple in the tie
- Adds the high and low scores of each couple together (team1 high and low then team 2 high and low scores)
- Compares the total and whoever has the higher score of higher and lower is returned as the winner and their score as the highest score
- Adds the high and low scores of each couple together (team1 high and low then team 2 high and low scores)
- Takes highest and lowest scores of each couple in the tie
- Determines if they have won the round with no tie
- Outputs winning and eliminated couples and their scores
- Writes the eliminated couples' total scores to a file along with their team name
- Returns to main()
- Writes the eliminated couples' total scores to a file along with their team name
- Determines if there is a tie for who won the round
- Loops for each competitor
- Define highScore, lowScore and totalScore to their base values (reset for each couple)
- Loops for all 6 couples
- States the current number of competitors for that round -1 (so we can reference this later)
- Moves to the right array for the high and low scores for a certain round
- Runs whichRound()
- Runs calcScores()
- Asks user if they want to continue
- End program
- Returns to main()
- Asks user if they want to enter a score
- Runs main()
Información
- Descripción
- GCSE Computing Mapa Mental sobre Dance Competition Program, creado por Phie . el 04/06/2021.
- Creado por
- Phie .
- Visitas
- 2
- Valoración