Skip to content

gobstech/store-management-system-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

🛒 TechStore – Sales and Inventory Management System in C

Language Platform License Status


📄 Overview

TechStore is a console-based sales and inventory management system developed entirely in C, created collaboratively by João Paulo Nunes Andrade, Gabriel Oliveira, and Caíque Andraus.
The project was designed to apply and consolidate core concepts from Computer Engineering, demonstrating how programming can streamline business processes and improve operational efficiency.


🧠 Implemented Features

🧾 Product Registration

Function: cadastrarProduto

  • Validates input to ensure:
    • Unique and positive product code
    • Non-empty name
    • Positive sale price
    • Non-negative stock quantity
  • Stores each product in a struct Produto:
    • code, name, price, stock

💰 Sales Recording

Function: registrarVenda

  • Validates product existence and stock availability
  • Updates stock automatically
  • Stores sale details in struct Venda:
    • sale ID, product, total amount

📋 Detailed Listings

  • listarProdutos: Displays products with positive stock
  • listarProdutosEmFalta: Lists out-of-stock items
  • listarVendas: Shows complete sales history

📊 Management Reports

Function: relatorios

  • maisVendido: Identifies best-selling product
  • vendasPorProduto: Breaks down sales per product
  • somaDasVendas: Calculates total revenue

⚙️ Technical Highlights

  • Structured Programming: Modular functions for clarity and maintainability
  • Data Structures:
    • struct Produto and struct Venda for organized data
    • Arrays: Produto produtos[MAX_PRODUTOS], Venda vendas[MAX_VENDAS]
  • Pointers: Used to update product and sales counts via reference
  • Control Flow: if/else, for, switch-case for logic and navigation
  • String Handling: fgets, strcspn for safe input
  • Localization: setlocale(LC_ALL, "Portuguese") for proper character display
  • Console UX: system("cls") for clean interface (OS-dependent)

🎯 Learning Outcomes

  • Applying structured logic to real-world scenarios
  • Managing data with structs and arrays
  • Implementing validation and reporting mechanisms
  • Enhancing user experience in console applications

🚀 How to Run

  1. Clone the repository:
    git clone https://github.com/seuusuario/TechStore.git
    

📬 Contact Me

About

This is a Sales and Inventory Management System developed in C Language, designed to control "TechStore" products, record sales and generate essential reports for management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 100.0%