Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dracula27/credit
Use C to determine what type of credit card a number is using Luhn's Algorithm.
https://github.com/dracula27/credit
c c-programming-language cs50x
Last synced: about 10 hours ago
JSON representation
Use C to determine what type of credit card a number is using Luhn's Algorithm.
- Host: GitHub
- URL: https://github.com/dracula27/credit
- Owner: DrAcula27
- Created: 2024-06-18T22:29:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T22:38:20.000Z (3 months ago)
- Last Synced: 2024-09-24T21:17:32.859Z (about 15 hours ago)
- Topics: c, c-programming-language, cs50x
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Credit
Determine what kind of credit card you have.
Table of Contents
## About The Project
> CS50x - Week 1 - Problem Set 1: Credit
> For this assignment, I used C to determine what type of credit card a number is based on Luhn's Algorithm and a user's input.
### Built With
- ![C](https://img.shields.io/badge/programming_language-a9bacd?style=flat&logo=c&logoColor=white)
## Usage
1. Clone this repository
2. In a terminal, navigate to the directory where you cloned this repository
3. Run `./credit.c`
4. Enter a credit card number
5. View which type of credit card your number is out of either:
- Visa
- AMEX
- Mastercard## Optimizations
This project can be improved by:
- [ ] Sanitizing the user input
## Lessons Learned
- **Learning C.** As my second C project, I improved on the basics with this assignment:
- basic function setup
- declaring variables
- loops & conditionals, including nesting conditionals
- printing to the console## Contact
Danielle Andrews - [@DrAcula_codes](https://twitter.com/DrAcula_codes 'Twitter/X') - [daniellerandrews](https://www.linkedin.com/in/daniellerandrews 'LinkedIn') - [email protected]
Project Link: [https://github.com/DrAcula27/cash](https://github.com/DrAcula27/cash)
## Acknowledgments
A special thanks to these resources used in the project!
- [GitHub Pages](https://pages.github.com)
- [CS50](https://www.edx.org/learn/computer-science/harvard-university-cs50-s-introduction-to-computer-science)