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.
- Host: GitHub
- URL: https://github.com/dracula27/cash
- Owner: DrAcula27
- Created: 2024-06-18T19:12:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T22:38:03.000Z (almost 2 years ago)
- Last Synced: 2025-03-11T16:51:40.397Z (about 1 year ago)
- Topics: c, c-language-programming, cs50x
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cash
Calculate the smallest number of coins needed.
Table of Contents
## 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.
### Built With
- 
## 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
## Optimizations
This project can be improved by:
- [ ] Adding the ability to use bills and coins
## 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
## 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)
## 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)