https://github.com/maruf346/voting-machine
https://github.com/maruf346/voting-machine
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maruf346/voting-machine
- Owner: Maruf346
- Created: 2025-02-11T16:58:20.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T17:09:20.000Z (3 months ago)
- Last Synced: 2025-02-11T18:26:03.663Z (3 months ago)
- Language: C
- Size: 326 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Voting Machine Project 🗳️
This repository contains a **Voting Machine** project implemented in **C**, showcasing two different approaches to conducting an electronic voting system. It also includes a project report detailing the implementation.
## 📌 Features
- Two different approaches to a voting system
- Secure voting mechanism
- Vote counting and result display
- Detection of invalid votes## 🛠 Approaches Used
1️⃣ **Basic Approach**
- Uses a simple structure with `if-else` conditions to count votes
- Allows users to cast votes and view results
- Handles invalid votes2️⃣ **Modular Approach (Functions & Macros)**
- Uses functions for better code organization
- Defines candidates using macros
- Includes a feature to display the **leading candidate**## 🚀 How to Use
1. Clone the repository:
```bash
git clone https://github.com/maruf346/voting-machine.git
```
2. Navigate to the project directory.
3. Compile and run the C program:
```bash
gcc voting_machine.c -o voting_machine
./voting_machine
```
4. Follow the on-screen instructions to cast votes and view results.## 📜 Requirements
- GCC Compiler (or any C compiler)
- Basic knowledge of C programming## 📄 Project Report
The repository also contains a **project report** explaining the implementation, features, and improvements.## Contact
Author: Maruf Hossain.
Dept. of CSE.
Green University of Bangladesh.
mail: [email protected]Feel free to explore, use, and improve the project! 🚀😊