C program simulating a space station resource system. Register crew, track health, manage personal resources (oxygen, water, food, medical), schedule missions, diagnose systems, and monitor stock levels. Implements linked list, priority queue, and BST for efficient management.
Space Station Resource Management System Overview
This C program simulates a space station resource management system. It allows you to register crew members, track their health, manage personal resource requests (oxygen, water, food, medical), schedule missions, diagnose systems, and monitor resource stock levels.
Features
Crew Management: Add crew members with auto-generated IDs, track health and gender.
Resource Management: Allocate personal resources, monitor stock levels, and trigger warnings when resources are low.
Mission Scheduling: Calculate required resources for missions and reserve them in a mission pool.
System Diagnostics: Check and repair communication and robotics systems.
Data Structures: Uses linked lists for crew, priority queues for urgent resource requests, and a binary search tree for efficient crew ID management.
Interactive Menu: Simple console-based menu for user-friendly navigation.
Usage
Compile the program:
gcc Main.c -o SpaceStationSystem
Run the program:
./SpaceStationSystem
Follow the interactive menu to:
Register crew members
Request personal resources
Update crew health
Schedule missions
Diagnose systems
View resource levels
Stock Limits
Main stock and mission pool for resources like Oxygen, Water, Food, and Medical.
Warnings when any resource falls below safety limits.
Requirements
GCC or any C compiler
Standard C libraries (stdio.h, stdlib.h, string.h, ctype.h)
Author RV Srujana