Skip to content

Latest commit

 

History

History
101 lines (67 loc) · 2.67 KB

README.md

File metadata and controls

101 lines (67 loc) · 2.67 KB

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

(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 - daniellerandrews - [email protected]

Project Link: https://github.com/DrAcula27/cash

(back to top)

Acknowledgments

A special thanks to these resources used in the project!

(back to top)