Skip to content

mdnm18/Mini_Projects_using_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini_Projects_using_C

Mini_Projects_using_C

  1. PROJECT 1 : RANDAM NUMBER GENERATOR & NUMBER GUESSING GAME.
  2. PROJECT 2 : SNAKE-WATER-GUN GAME.
  3. PROJECT 3 : ATM MACHINE.
  4. PROJECT 4 : CHEMISTRY PERIODIC TABLE GENERATOR & THE ELEMENT'S PROPERTIES GENERATOR.
  5. PROJECT 5 : DIGITAL STOP WATCH.
  6. PROJECT 6 : CURRENT DATE & TIME GENERATOR.
  7. PROJECT 7 : YEAR CALENDAR GENERATOR.

Programs Included

1. Number Guessing Game

  • 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

2. Snake Water Gun Game

  • 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

3. ATM Machine Simulator

  • 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

4. Modern Periodic Table

  • 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

5. Digital Stopwatch

  • Simple command-line stopwatch
  • Features:
    • Hours:Minutes:Seconds display
    • 24-hour format
    • Clear screen updates
    • Precise second-by-second counting

6. Digital Clock

  • 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

7. Calendar Generator

  • 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

8. Random Number Generator

  • Simple random number generator
  • Generates numbers between 1 and 100
  • Uses system time as seed for true randomness

Technical Requirements

  • C compiler (GCC recommended)
  • Standard C libraries
  • Unix-based system for some programs (or Windows with appropriate modifications)

Compilation Instructions

gcc -o program_name program_name.c
./program_name

Note

  • Some programs might need system-specific modifications (e.g., system("clear") vs system("cls") for Unix/Windows)
  • All programs include error handling and input validation
  • Programs are designed for educational purposes and practical learning

Contributing

Feel free to contribute to this collection by:

  • Adding new features to existing programs
  • Improving error handling
  • Optimizing code
  • Adding new programs
  • Fixing bugs

License

This project is open source and available under the MIT License.

About

Mini_Projects_using_C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages