Skip to content

Cash register implementation which mimics the actions of the salesperson who has accepted money from the customer and must return the difference.

License

Notifications You must be signed in to change notification settings

RajdeepKonwar/CashRegister

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CashRegister

Cash Register implementation which mimics the actions of the salesperson who has accepted money from the customer and must return the difference.

Compile Instruction

make

Run Instruction

./CashRegister

Sample Output

Initial amount in register = $4691

Enter amount paid: $20
Enter amount owed: $4.64

[LCD] Paid: $20
[LCD] Owed: $4.64
[LCD] Diff: $15.36
Denomination: $10       Count: 1
Denomination: $5        Count: 1
Denomination: 25¢       Count: 1
Denomination: 10¢       Count: 1
Denomination: 1¢        Count: 1
Amount left in register = $4675.64

More transactions? (y/n)

About

Cash register implementation which mimics the actions of the salesperson who has accepted money from the customer and must return the difference.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published