Write a program that shows Game sales. The program should use a structure to store the following data about the Game sale: Game company Type of Game (Action, Adventure, Sports etc.) Year of Sale Sale Price The program should use an array of at least 3 structures (3 variables of the same structure). It should let the user enter data into the array, change the contents of any element and display the data stored in the array. The program should have a menu driven interface. Input Validation: When the data for a new game sale is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a “Sale Price” of the Game An example: You will use 1 structure only and then manipulate that for working with the information. The program should use an array of at least 3 structures (3 variables of the same structure). An example of the structure: struct Game { string name; string type; int year; double price; };
Write a
Game company
Type of Game (Action, Adventure, Sports etc.)
Year of Sale
Sale Price
The program should use an array of at least 3 structures (3 variables of the same structure). It should let the user enter data into the array, change the contents of any element and display the data stored in the array. The program should have a menu driven interface.
Input Validation: When the data for a new game sale is entered, be sure the user enters data for all the fields. No negative amounts should be entered for a “Sale Price” of the Game
An example:
You will use 1 structure only and then manipulate that for working with the information.
The program should use an array of at least 3 structures (3 variables of the same structure).
An example of the structure:
struct Game
{
string name;
string type;
int year;
double price;
};
So far I have written that ...
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 6 images