https://github.com/valda1/counter
Few simple tasks in C++.
https://github.com/valda1/counter
counter cpp
Last synced: 11 months ago
JSON representation
Few simple tasks in C++.
- Host: GitHub
- URL: https://github.com/valda1/counter
- Owner: Valda1
- Created: 2022-12-06T16:09:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T16:15:45.000Z (over 3 years ago)
- Last Synced: 2024-12-29T11:16:40.720Z (over 1 year ago)
- Topics: counter, cpp
- Language: C++
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Homework
Task 1
Write a program that asks the user to enter an amount of money in the format of dollars and remaining cents.
The program should calculate and print the minimum number of coins (quarters, dimes, nickels and pennies)
that are equivalent to the given amount.
Task 2
Write a program that asks the user to enter a number of quarters, dimes, nickels and pennies and then outputs
the monetary value of the coins in the format of dollars and remaining cents.