Write a C++ program that is used by video game shop to update the information of some video games, as follows: Total selling Unit price ($) 39.99 Name Number of users Game status (Million) 33.1 GTA To Be Calculated To be calculated To be calculated To Be Calculated To be calculated To Be Calculated | To be calculated To Be Calculated | To be calculated CallofDuty 40.3 59.99 To Be Calculated Minecraft 23.2 26.95 TitanFall 10.7 14.49 Battlefield 27.8 49.99 You need to define one 1D array of type string Game[5] to save the games names. Also, you need to define 2D array of double GameInfo[5][4] that contains the games info: GameInfo [] [0] represents the number of users for each game. GameInfo [][1] represents the unit price. GameInfo [] [2] represents the total selling for each game. GameInfo [] [3] represents the game status (On demand or not). Write a function read that reads the games information (game name, number of users and unit price) from the user input and stores them in the arrays. In the main function, call the function to read the games info. а. Function prototype: void read (double GameInfo [][4], string Game[],int size) ww w

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section12.2: Providing Class Conversion Capabilities
Problem 2E
icon
Related questions
Question

code in c++

Write a C++ program that is used by video game shop to update the information of some
video games, as follows:
Unit price
($)
39.99
Name
Number of users
Total selling
Game status
(Million)
33.1
To Be Calculated To be calculated
To Be Calculated To be calculated
GTA
CallofDuty
40.3
59.99
Minecraft
23.2
26.95
To Be Calculated
To be calculated
To Be Calculated To be calculated
To Be Calculated | To be calculated
TitanFall
10.7
14.49
Battlefield
27.8
49.99
You need to define one 1D array of type string Game [5] to save the games names. Also, you
need to define 2D array of double GameInfo[5] [4] that contains the games info:
GameInfo [] [0] represents the number of users for each game.
GameInfo [][1] represents the unit price.
GameInfo [] [2] represents the total selling for each game.
Game Info [] [3] represents the game status (On demand or not).
w w ww
Write a function read that reads the games information (game name, number of
users and unit price) from the user input and stores them in the arrays. In the main
function, call the function to read the games info.
а.
Function prototype:
void read (double GameInfo [] [4], string Game[],int size)
Transcribed Image Text:Write a C++ program that is used by video game shop to update the information of some video games, as follows: Unit price ($) 39.99 Name Number of users Total selling Game status (Million) 33.1 To Be Calculated To be calculated To Be Calculated To be calculated GTA CallofDuty 40.3 59.99 Minecraft 23.2 26.95 To Be Calculated To be calculated To Be Calculated To be calculated To Be Calculated | To be calculated TitanFall 10.7 14.49 Battlefield 27.8 49.99 You need to define one 1D array of type string Game [5] to save the games names. Also, you need to define 2D array of double GameInfo[5] [4] that contains the games info: GameInfo [] [0] represents the number of users for each game. GameInfo [][1] represents the unit price. GameInfo [] [2] represents the total selling for each game. Game Info [] [3] represents the game status (On demand or not). w w ww Write a function read that reads the games information (game name, number of users and unit price) from the user input and stores them in the arrays. In the main function, call the function to read the games info. а. Function prototype: void read (double GameInfo [] [4], string Game[],int size)
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr