Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        


Credit



Determine what kind of credit card you have.


Table of Contents



  1. About The Project


  2. Usage

  3. Optimizations

  4. Lessons Learned

  5. Contact

  6. Acknowledgments

## 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.

(back to top)

### Built With

- ![C](https://img.shields.io/badge/programming_language-a9bacd?style=flat&logo=c&logoColor=white)

(back to top)

## 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

(back to top)

## Optimizations

This project can be improved by:

- [ ] Sanitizing the user input

(back to top)

## 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

(back to top)

## 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)

(back to top)

## 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)

(back to top)