- GUI = Hannah Johnston and Caige Rogers
- Calculator = Samuel Gross
- Converter + Tests = Austen Lowder
- Code Clean-up, Meeting Notes + README = Leah Casey
This application looks like a regular calculator, but only has buttons for the numbers 0, 1, 2, 3. The user can enter a quaternary (base-4) number, choose an operation button (addition, subtraction, division, or multiplication), enter a second quaternary number, and see the result of the operation. The user can also enter just one quaternary number and then choose a button to see its square or square root. Finally, the user can toggle between displaying the base-4 result or its decimal equivalent.
This app is built using Java, JavaFX, Gradle, and object-oriented design.
Welcome to the Quaternary Calculator! This desktop application was built using IntelliJ IDEA, Java (JDK 18), Gradle, and JavaFX. JUnit was used for testing to ensure the reliability and accuracy of calculations.
The Quaternary Calculator is a desktop application designed to perform mathematical operations in base-4 (quaternary) by default. It allows you to perform basic arithmetic calculations, as well as more advanced operations like square, square root, addition, subtraction, multiplication, and division—all in the quaternary numeral system.
To use the Quaternary Calculator, follow these installation steps:
- Ensure you have Java Development Kit (JDK) 18 or later installed on your computer.
- Clone or download this repository to your local machine.
- Open the project using IntelliJ IDEA or your preferred Java development environment.
- Build and run the application.
Upon launching the application, you'll be presented with a user-friendly interface featuring a buttons for entering equations and a result window for viewing the calculation results.
- Use the numeric buttons (0-3) to enter numbers.
- Use the operation buttons (+, -, x, /) to select the desired operation.
- Press the "Enter" button to calculate the result.
- To calculate the square of a number, press the "x²" button.
- To calculate the square root of a number, press the "√" button.
- To clear the equation window, press the "Clear" button.
- Toggle between base-4 and base-10 modes by clicking the "Toggle" button. The current mode is displayed below the result window. By default, the calculator starts and performs in Base-4, unless or until toggled.
8/31/23 in-person, RB 353
- Leah will set up the Git repo, set up the project, and push initial commit
- Samuel set up Slack group for us
- Discussed basic functions of the calculator
- GUI is a big piece of the project, so two people will work on that
- Will discuss how to divide project tasks next meeting
9/1/23 in-person (Hannah by FaceTime), RB 369
- We'll use JavaFX
- Classes discussed: To, From, Calculator, Main (GUI), Converter, Test
- Added during meeting: Conversion (Quaternary/Decimal) function, some classes, function placeholders
- Allocation of tasks:
- GUI - Hannah and Caige
- Calculator - Samuel
- Converter, Tests - Austen
- Clean-up + README - Leah
- Next meeting: Sunday on Slack
9/3/23 on Slack
- new build and repository set up due to conflicts between JavaFX dependencies and Kotlin
9/5/23 in-person, RB 353
- functions(s) will update values per button pressed rather than '+'-ng the values together and then performing the operation
- project should be mostly complete this evening
9/8/23 via Slack
- Discussed fixed several errors, such digits showing up in display regardless of operations entered
- A few team members experienced issues using Gradle, JavaFX, and/or JUnit; these were solved
- Operation functions updated do address mathematical and running errors
- Label added to display which mode the calculator is operating in
- Screen shots added, README completed