{"id":25299990,"url":"https://github.com/mayanksavaliya/voting-system","last_synced_at":"2025-10-12T20:11:45.269Z","repository":{"id":222147919,"uuid":"756416225","full_name":"MayankSavaliya/Voting-System","owner":"MayankSavaliya","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-16T11:11:49.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T23:39:22.333Z","etag":null,"topics":["c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MayankSavaliya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-12T16:14:17.000Z","updated_at":"2024-06-16T11:16:33.000Z","dependencies_parsed_at":"2024-02-12T16:54:04.003Z","dependency_job_id":"f088b8a0-f23d-4b25-b4d0-a859bb978090","html_url":"https://github.com/MayankSavaliya/Voting-System","commit_stats":null,"previous_names":["mayanksavaliya/voting-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MayankSavaliya/Voting-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayankSavaliya%2FVoting-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayankSavaliya%2FVoting-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayankSavaliya%2FVoting-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayankSavaliya%2FVoting-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MayankSavaliya","download_url":"https://codeload.github.com/MayankSavaliya/Voting-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MayankSavaliya%2FVoting-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279012797,"owners_count":26085187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c"],"created_at":"2025-02-13T05:36:32.565Z","updated_at":"2025-10-12T20:11:45.234Z","avatar_url":"https://github.com/MayankSavaliya.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Voting-System\n\nThis is a simple console-based voting system built using C. It allows users to cast votes for predefined candidates, view the vote counts, and find the winner candidate.\n\n## Features\n\n- Cast a vote for one of the predefined candidates.\n- View the vote count for each candidate.\n- Determine the winner based on the highest vote count.\n\n## Candidates\n\n- Amit Shah\n- Narendra Modi\n- Vijay Rupani\n- Donald Trump\n\n## Getting Started\n\n### Prerequisites\n\n- A C compiler (e.g., GCC)\n\n### Installation and Running\n\n1. **Clone the Repository:**\n\n    ```bash\n    git clone https://github.com/MayankSavaliya/Voting-System.git\n    cd Voting-System\n    ```\n\n2. **Compile the Program:**\n\n    ```bash\n    gcc voting_system.c -o voting_system\n    ```\n\n3. **Run the Program:**\n\n    ```bash\n    ./voting_system\n    ```\n\n### Usage\n\n1. **Main Menu:**\n\n    The program will display a main menu with the following options:\n\n    ```plaintext\n    ###### Welcome to Election/Voting 2023 #####\n    \n    1. Take the Vote\n    2. Find Vote Count\n    3. Find Winner Candidate\n    0. Exit\n    \n    Please enter your choice:\n    ```\n\n2. **Take the Vote:**\n\n    When you choose this option, you will be prompted to select a candidate to vote for:\n\n    ```plaintext\n    ***** Please choose your Candidate For Voting *****\n    \n    1. Amit Shah\n    2. Narendra Modi\n    3. Vijay Rupani\n    4. Donald Trump\n    5. None of These\n    \n    Enter your choice (1 - 5):\n    ```\n\n    Enter the number corresponding to your choice and press Enter.\n\n3. **Find Vote Count:**\n\n    This option displays the current vote count for each candidate, as well as the number of spoiled votes:\n\n    ```plaintext\n    ***** Voting Result *****\n    Amit Shah - X\n    Narendra Modi - Y\n    Vijay Rupani - Z\n    Donald Trump - W\n    Spoiled Votes - V\n    ```\n\n4. **Find Winner Candidate:**\n\n    This option displays the candidate with the highest votes:\n\n    ```plaintext\n    ***** Leading Candidate *****\n    [Candidate Name]\n    ```\n\n    If no votes have been cast, it will display:\n\n    ```plaintext\n    ------!! NO WINNER !!------\n    ```\n\n5. **Exit:**\n\n    This option exits the program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayanksavaliya%2Fvoting-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmayanksavaliya%2Fvoting-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmayanksavaliya%2Fvoting-system/lists"}