Skip to content

About

Desktop Java calculator with Swing dialogs (JOptionPane), OOP architecture, and memory accumulator (MS).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Java Calculator with Memory (MS)

Java Status License

A desktop calculator developed in Java featuring graphical input dialogs and a memory accumulator. The application handles fundamental arithmetic operations (addition, subtraction, multiplication, and division) within a continuous execution loop, applying core Object-Oriented Programming (OOP) concepts.

📌 Overview & Features

  • Dialog-based GUI: Utilizes standard Java Swing dialogs (JOptionPane) for interactive numeric inputs and result displays.
  • Object-Oriented Architecture: Computation logic is separated into an independent class (Calculadora) with private state encapsulation, getters, setters, and extensible structure (CalculadoraCientifica).
  • Memory Management (MS): Stores an accumulated value across computations, supporting addition (M+) and subtraction (M-) into memory.
  • Continuous Flow: Runs in an interactive loop allowing multiple successive calculations until the user chooses to exit.

🎓 Learning Context

Developed to practice and consolidate core Java fundamentals, object encapsulation, and GUI message dialogs. This implementation represents the evolution of an earlier Python CLI calculator project, transitioning procedural logic into an object-oriented structure.

🚀 How to Run Locally

Prerequisites

  • Java Development Kit (JDK 8 or higher)

Execution

  1. Clone the repository:
git clone [https://github.com/narahsouza/CalculadoraJava.git](https://github.com/narahsouza/CalculadoraJava.git)
cd CalculadoraJava
  1. Compile and run using an IDE (such as IntelliJ IDEA, Eclipse, or VS Code) by opening the project and launching the Main class, or execute directly via terminal:
javac -d bin src/Apoio/*.java src/Main.java
java -cp bin Main

About

Desktop Java calculator with Swing dialogs (JOptionPane), OOP architecture, and memory accumulator (MS).

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages