Question: CPP No sample output or input file given. Video Games (with File /O) Write a program that stores the following data about a video game
Video Games (with File /O) Write a program that stores the following data about a video game in a structure: Field Name Description title genre rank ime string (name of game) enum (type of game) int float/double This program will NOT need an array of structures. Instead, store the data in a file named games.dat. Your program will use a single structure variable to read/write a record as needed. Your program should have a menu that allows the user to perform the tasks shown below 1. Add a game. 2. Print the information for all games, in table form (does not need to be sorted). 3. Calculate and display the total time spent playing all video games. 4. Calculate and print the average rank for all games. 5. Edit the data (Extra Credit). Your program should allow the user to make selections until they choose a 6th option "Exit Program which will end the program. Your program should be modular. Use a separate function for each option stated above. Your output should be well-organized, neat, and easy to read. Design your program by completing the CS 250 Program Design Document. Be sure to include a structure chart for the program, the prototype for each function, a brief description of what each
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
