a) Write the C++ statements for following tasks: Declare a struct name GameRecord. The members are gameId duration (in 1. minutes) and score .Each game consists of 3 rounds with different score....


C++ Programming


a) Write the C++ statements for following tasks:<br>Declare a struct name GameRecord. The members are gameId duration (in<br>1.<br>minutes) and score .Each game consists of 3 rounds with different score. Therefore,<br>score should be able to store 3 values.<br>Create a variable name SportGame of type GameRecord. Assign the following value to<br>11.<br>www<br>the SportGame record :<br>game Id : G1001|<br>duration : 40<br>Round 1<br>Round 2<br>Round 3<br>score<br>45<br>37<br>55<br>111.<br>Calculate the total score from sportGame record by using loop control structure.<br>

Extracted text: a) Write the C++ statements for following tasks: Declare a struct name GameRecord. The members are gameId duration (in 1. minutes) and score .Each game consists of 3 rounds with different score. Therefore, score should be able to store 3 values. Create a variable name SportGame of type GameRecord. Assign the following value to 11. www the SportGame record : game Id : G1001| duration : 40 Round 1 Round 2 Round 3 score 45 37 55 111. Calculate the total score from sportGame record by using loop control structure.

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here