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

https://github.com/dracula27/cash

Use C to calculate the smallest number of coins needed to give an exact amount of change based on a user's input.
https://github.com/dracula27/cash

c c-language-programming cs50x

Last synced: 4 months ago
JSON representation

Use C to calculate the smallest number of coins needed to give an exact amount of change based on a user's input.

Awesome Lists containing this project

README

          


Cash



Calculate the smallest number of coins needed.


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: Cash

> For this assignment, I used C to calculate the smallest number of coins needed to give an exact amount of change based on 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 `./cash.c`
4. Enter an amount of change owed
5. View what coins you need
6. Profit

(back to top)

## Optimizations

This project can be improved by:

- [ ] Adding the ability to use bills and coins

(back to top)

## Lessons Learned

- **Learning C.** As my first C project, I learned the basics with this assignment:
- basic function setup
- declaring variables
- loops
- 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') - danielle.andrews.dev@icloud.com

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)