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.
- User login with username and password verification.
- Loads machinery data from
fleet.txton startup. - Saves updated machinery data back to
fleet.txton 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.
- Compile and run the program in Visual Studio or your preferred C development environment.
- When the program starts, enter your username and password to log in.
- 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.
- Input is validated to ensure data integrity.
- Choose the option to exit when finished; all changes will be saved automatically to
fleet.txt.
- 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.txtand 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.
- Developed and tested using Visual Studio.