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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education