Question: Please answer in c++, use the same frozen code thats given and add the rest for it to work. thank you. Synopsis: You are the
Please answer in c++, use the same frozen code thats given and add the rest for it to work. thank you.





Synopsis: You are the coach for the basketball team, and the season has just come to the end. You decide to write the program that will store the score in every game in the season. There are 5 games in the season, so you need to use a dynamic array for every game. With every upcoming game, your team got better in scoring the points, e.g. game 1=21pts, game 2=32pts,., game 5=65pts. Then you received an update that in one of the games, you received additional points! So you need to check the score for that game by asking for user input, add additional points to that game, display the updated score for every game, and lastly. calculate the total score for the season. additional points to that game, display the updated score for every game, and lastly, calculate the total score for the season. Functions explained: - void alterGameScore(int pArr[], int gameNumber) - adds k points ( k being user input taken inside the function, not as a parameter) to game n; - int totalScore(int pArr[], int gameMAX) - returns all added points in dynamic array; - void printScores(int pArr[], int gameMAX) - prints all updated points for all games. You are provided with some template code as a starting point. To-Do: Write a C++ program that will assign a value to the pointer array for five games. Then write code that will - Check the score for a particular game - Add points to that game - Display the updated score for every game - Calculate the total score for the game Sample Input/Output: Input - Display the updated score for every game - Calculate the total score for the game Sample Input/Output: Input Game\# to check from 1 - 5 available games checked, in this case for game 4 that is Output The new value/score of selected game. Based on the given formula, Sumofallgamescores;21+32+43+75+65=236 Note: OnlineGDB is not a human and therefore won't be able to distinguish the correct output from the incorrect output. If something doesn't match, it will immediately count the Test Case as failed. So for the sake of this assignment, please don't include prompt statements in this program! Topics that will help you towards forming.your solution: - C++ Syntax/Semantics - C++ Input/Output - C++ Variables and Identifiers - C++ Datatypes - C++ Operators - C++ Functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
