Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Author Sailee Phal

Game Shop Documentation

Overview

This code represents a simple console-based game shop management system written in C++. It allows users to view available games, make purchases, and manage their account information.

Features

  • View available games and their details.

  • Make purchases by adding products to the cart.

  • Display the total value of selected products.

  • Display all purchased products.

  • Store and retrieve customer information.

  • Display customer details and exit message.

Classes

'stock'

  • Manages the stock quantity for each game.

  • Decreases the stock when a product is purchased.

  • Provides a display of available stock for a given product code.

'product'

  • Inherits from stock.

  • Manages product information such as name, code, and price.

  • Allows users to add products, display the total value, and display all products.

'purchase'

  • Inherits from stock and product.

  • Displays available games for purchase.

'customer'

  • Manages customer information, including name, ID, phone number, and rating.

  • Displays customer details and a farewell message.

File Operations

  • Utilizes file operations to display additional information about each game.

  • Files are named after each game (e.g., "Snakes and Ladders.txt").

  • Information includes the year created, target age group, and a brief description.

Main Functionality

  • View Games and Make Purchase

  • Display available games.

  • Allow the user to choose whether to make a purchase, view more details, or exit.

  • Purchase Flow

  • Allow the user to add products to the cart.

  • Display total value and all purchased products.

  • Repeat until the user chooses to exit.

  • Customer Information

  • Prompt the user to enter their name, ID, phone number, and satisfaction rating.

  • Display customer information and a thank you message.

How to Use

  • Compile and run the program.

  • Follow the on-screen instructions to view available games and make purchases.

  • Enter customer information when prompted.

  • Review customer details and exit the program.

Additional Information

  • Ensure that the necessary libraries are available for your C++ compiler (e.g., fstream, iostream, conio.h, iomanip, string).

  • Review the code comments for additional details on each class and function.

  • Feel free to extend or modify the code to meet specific requirements.

Note: This documentation provides a high-level overview. For more detailed explanations, refer to the code comments and the logic implemented in each function.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages