Question: REMEMBER TO ANSWER BOTH O & (iD o Write a declaration for a C++ structured-record type named BoardGame that includes as fields: a string named

REMEMBER TO ANSWER BOTH O & (iD o Write a declaration for a C++ structured-record type named BoardGame that includes as fields: a string named name, a foating point number named cost, and a nonnegative integer named pieces. (it) Use the structured record from the previous question to write a function named find CostBoardGame that is given (1) an array of BoardGames, (2) the number of board games stored in the array, and (3) the name of a game The array parameter should not be changed and should be passed by reference for speed. The function should search the array to find a BoardGame with the given name and return the cost of the game. If the given name is not found in the array, then return -1.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
