Question: Purpose: Create a C# Console application following Object Oriented Programming concepts, that inputs, processes and stores / retrieves inventory data. You are required to use

Purpose:
Create a C# Console application following Object Oriented Programming concepts, that inputs, processes and stores/retrieves inventory data. You are required to use only the programming constructs taught in class up to and including Week 13.
Your program should run in Visual Studio.
Problem statement:
You are required to write a program for an employer to use at a video game shop. The program should allow the user to access, process and modify the information about the different video games available for sale. The information about the items is saved in a file named VideoGames.txt. The user should be able to see a display of the current shop items and be able to enter data about new shop items, which should be saved to the existing VideoGames.txt file. Data validation is required.
1. You should create a Game class that contains the fields for the item number, name, the price, the user rating and the number of items in stock.
The required attributes:
ItemNumber (4 digit code)
ItemName
Price
UserRating (out of 5)
Quantity
The class methods:
The Game class must include constructors, accessor and mutators methods, and the overriden ToString() method. Add extra methods as necessary.
2. The program should prompt the user to select between a few different options:
- Adding new products: The user should be able to add new video games to the existing inventory. The program should be able to generate a new 4-digit item number for the item if the item number is unknown or allow the user to input the item number manually if the item number is known.
- Searching based on Item Number: The user should be able to search for video games in the existing inventory based on its item number. The program should then display the information about the specified item on the screen.
- Searching based on maximum price: The user should be able to search for video games in the existing inventory based on maximum price. The program should then read the information in the file and display all the items with a price less than or equal to the entered value.
- Statistical analysis: The program should allow the user to perform some statistical analysis of the price of items in stock. The program should output the mean price of the items in stock, the price range of the items in stock (largest price lowest price), the item with the lowest price, along with its price, and the item with the highest price, along with its price.
3. The user should be able to access the different options via a menu that should be displayed on running the program. The menu should include options which allow the user to display the information saved in the file about the items, to add new items, search for an item, perform statistical analysis and any other options deemed necessary, including an exit option.
Important guidelines:
A sample data file and the expected format for the VideoGames.txt file is given on the next page. The formatting of the file should follow exactly that of the sample file given.
You should use only the programming constructs taught in class up to and including Week 13.
Your program should run in Visual Studio.
The names and id numbers of all group members must be commented at the top of the program.
Appropriate validations must be done.
Appropriate comments must be included
One member of each group must be responsible for uploading the program code.
The program should be completed in a single file and only the .cs file must be submitted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!