Skip to content

Web App created using JavaScript that allows users to find the number of notes to return to a customer, given the bill and cash amount

Notifications You must be signed in to change notification settings

bharati-21/cash-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cash Register

Web App created using JavaScript that allows users to find the number of notes to return to a customer, given the bill and cash amount.

This application tells user the cash to be paid, and the minimum number of notes to return when the user (cashier) enters the bill and the amount paid by the customer.

Live demo of the application


PREREQUISITES

  • HTML
  • CSS
  • HTML

WORKING

  1. User (cashier) enters the bill amount, and the cash paid by the customer.
  2. If the amounts entered are valid, the user is shown the amount to be returned, and the minimum number of notes to return.
  3. Available notes in the register are: Rs. 2000, Rs. 500, Rs. 100, Rs. 50, Rs. 20, Rs. 10 and Rs. 1.

My Learnings

  • Modulo operators
  • Use of display property
  • Arrays and traversing arrays

Challenges

  • displaying the section or hiding the section depending after validating user input.

About

Web App created using JavaScript that allows users to find the number of notes to return to a customer, given the bill and cash amount

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published