Mini_Projects_using_C
- PROJECT 1 : RANDAM NUMBER GENERATOR & NUMBER GUESSING GAME.
- PROJECT 2 : SNAKE-WATER-GUN GAME.
- PROJECT 3 : ATM MACHINE.
- PROJECT 4 : CHEMISTRY PERIODIC TABLE GENERATOR & THE ELEMENT'S PROPERTIES GENERATOR.
- PROJECT 5 : DIGITAL STOP WATCH.
- PROJECT 6 : CURRENT DATE & TIME GENERATOR.
- PROJECT 7 : YEAR CALENDAR GENERATOR.
- A simple interactive game where players guess a randomly generated number
- Provides hints (higher/lower) to guide the player
- Tracks number of attempts taken to guess correctly
- Uses random number generation between 1-100
- Implementation of the classic Snake-Water-Gun game (similar to Rock-Paper-Scissors)
- Play against computer with randomized choices
- Includes clear winning rules:
- Snake beats Water
- Water beats Gun
- Gun beats Snake
- Displays both player and computer choices
- Simulates basic ATM operations
- Features:
- Multiple bank card support (SBI, HDFC, ICICI, AXIS, PNB)
- Balance inquiry
- Cash withdrawal
- PIN verification (with retry option)
- Transaction limits
- Balance updates after transactions
- Interactive periodic table information system
- Features:
- Details for all 118 elements
- Information includes:
- Element name and symbol
- Atomic number
- Electronic configuration
- Discovery credit
- Charge
- Search by atomic number
- User-friendly interface
- Simple command-line stopwatch
- Features:
- Hours:Minutes:Seconds display
- 24-hour format
- Clear screen updates
- Precise second-by-second counting
- Real-time digital clock display
- Features:
- Current time display in HH:MM:SS format
- Date display (DD-MM-YYYY)
- Auto-updates every second
- System time synchronization
- Generates a calendar for any given year
- Features:
- Monthly view with proper day alignment
- Leap year handling
- Day of week calculation using Zeller's Congruence
- Full year display with all months
- Simple random number generator
- Generates numbers between 1 and 100
- Uses system time as seed for true randomness
- C compiler (GCC recommended)
- Standard C libraries
- Unix-based system for some programs (or Windows with appropriate modifications)
gcc -o program_name program_name.c
./program_name- Some programs might need system-specific modifications (e.g.,
system("clear")vssystem("cls")for Unix/Windows) - All programs include error handling and input validation
- Programs are designed for educational purposes and practical learning
Feel free to contribute to this collection by:
- Adding new features to existing programs
- Improving error handling
- Optimizing code
- Adding new programs
- Fixing bugs
This project is open source and available under the MIT License.