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.
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
Function: registrarVenda
- Validates product existence and stock availability
- Updates stock automatically
- Stores sale details in
struct Venda:sale ID,product,total amount
listarProdutos: Displays products with positive stocklistarProdutosEmFalta: Lists out-of-stock itemslistarVendas: Shows complete sales history
Function: relatorios
maisVendido: Identifies best-selling productvendasPorProduto: Breaks down sales per productsomaDasVendas: Calculates total revenue
- Structured Programming: Modular functions for clarity and maintainability
- Data Structures:
struct Produtoandstruct Vendafor 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-casefor logic and navigation - String Handling:
fgets,strcspnfor safe input - Localization:
setlocale(LC_ALL, "Portuguese")for proper character display - Console UX:
system("cls")for clean interface (OS-dependent)
- Applying structured logic to real-world scenarios
- Managing data with structs and arrays
- Implementing validation and reporting mechanisms
- Enhancing user experience in console applications
- Clone the repository:
git clone https://github.com/seuusuario/TechStore.git