Skip to content
/ cash Public

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

Notifications You must be signed in to change notification settings

DrAcula27/cash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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 - danielle.andrews.dev@icloud.com

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

(back to top)

Acknowledgments

A special thanks to these resources used in the project!

(back to top)

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages