Skip to content

Romie321/Register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💵 Cash Register

A JavaScript-based cash register application that calculates change using real currency denominations. This project focuses on algorithmic problem‑solving, clean logic, and practical UI structure.

📌 Project Overview

The Cash Register project simulates how a real cash drawer returns change based on the purchase price, cash provided, and the available money in the drawer. It determines:

  • Whether exact change can be returned

  • How much change to give back

  • Which denominations to use

  • Whether the drawer should remain open or close

This project helped strengthen my understanding of JavaScript logic, arrays, objects, and conditional flow.

🧰 Features

  • Calculates change using real U.S. currency denominations

  • Determines drawer status: "OPEN", "CLOSED", or "INSUFFICIENT_FUNDS"

  • Clean, readable JavaScript logic

  • Simple UI for entering purchase amount and cash provided

  • Responsive layout

  • Realistic cash drawer simulation

🖥️ Technologies Used

  • HTML5

  • CSS3

  • JavaScript (ES6+)

🚀 Live Demo

View the project here: https://romie321.github.io/Register/

📂 How to Run Locally

Clone the repository:

bash git clone https://github.com/Romie321/Register.git Open the project folder.

Open index.html in your browser.

🔧 Future Improvements

  • Add animations or transitions

  • Improve UI styling

  • Add error messages for invalid inputs

  • Add a breakdown showing how change was calculated

  • Add unit tests for the change‑calculation function

👤 Author

Ramiro Aguilera
Software & Web Developer Always learning, always building.

About

A simple JavaScript cash register project that calculates change using real currency denominations. I’m still refining the UI and improving the logic to make the app cleaner and more accurate.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors