Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machinery Fleet Management System

This C program manages a fleet of machinery through a command-line interface. It uses a linked list to store machine records dynamically and supports file input/output for persistent data storage. The system includes a simple login authentication mechanism to restrict access.


Features

  • User login with username and password verification.
  • Loads machinery data from fleet.txt on startup.
  • Saves updated machinery data back to fleet.txt on exit.
  • Adds new machinery records.
  • Displays all or individual machinery details.
  • Updates existing machine information.
  • Deletes machinery records from the list.
  • Sorts machinery by current valuation.
  • Generates statistics and reports by machine type.
  • Password input is masked during login for security.

How to Use

  1. Compile and run the program in Visual Studio or your preferred C development environment.
  2. When the program starts, enter your username and password to log in.
  3. Use the menu to navigate through options such as:
    • Adding a new machine to the fleet.
    • Viewing all machinery or searching for specific machines by chassis number.
    • Updating details of existing machinery.
    • Deleting machinery records.
    • Sorting the fleet based on current valuation.
    • Generating reports and statistics for machine types.
  4. Input is validated to ensure data integrity.
  5. Choose the option to exit when finished; all changes will be saved automatically to fleet.txt.

Technical Details

  • Implements a singly linked list to hold machinery data dynamically.
  • Machine records include chassis number, make, model, year, purchase cost, current value, mileage, service information, owner details, machine type, and breakdown history.
  • User credentials are stored in login.txt and read during login.
  • Password entry is masked to enhance security.
  • Sorting is performed in-memory based on machine valuation.
  • File reading and writing use plain text files with simple formatting for easy maintenance.

Environment

  • Developed and tested using Visual Studio.

About

A C program for managing a machinery fleet via a command-line interface. It supports secure login, adding, updating, deleting, and viewing machine records stored in linked lists with file-based persistence. Developed as part of the Advanced Procedural Programming module.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages