https://github.com/nurulashraf/java-number-calculator
A Java program that lets users input six numbers and calculates their total and average. Features a user-friendly GUI built with Java Swing, ensuring input validation and clear result display. Perfect for beginners exploring Java development or basic number processing applications.
https://github.com/nurulashraf/java-number-calculator
basic-calculator beginner-friendly gui-application input-validation java java-project learning-java math-calculations number-processing swing
Last synced: 3 months ago
JSON representation
A Java program that lets users input six numbers and calculates their total and average. Features a user-friendly GUI built with Java Swing, ensuring input validation and clear result display. Perfect for beginners exploring Java development or basic number processing applications.
- Host: GitHub
- URL: https://github.com/nurulashraf/java-number-calculator
- Owner: nurulashraf
- License: mit
- Created: 2025-01-20T00:01:54.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T07:33:44.000Z (5 months ago)
- Last Synced: 2025-02-03T08:29:49.523Z (5 months ago)
- Topics: basic-calculator, beginner-friendly, gui-application, input-validation, java, java-project, learning-java, math-calculations, number-processing, swing
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Java Number Calculator
A simple Java application that allows users to input six numbers and calculates the total and average of those numbers. The program features a graphical user interface (GUI) built using Java Swing.
## Features
- Input validation to ensure valid numbers are entered.
- Displays the numbers entered along with their total and average.
- User-friendly interface with pop-up dialogs for input and results.## Requirements
- Java Development Kit (JDK) 8 or later.
## How to Run
1. Clone the repository:
```bash
git clone https://github.com/nurulashraf/NumberCalculator.git
cd NumberCalculator
```2. Compile the program:
```bash
javac -d . NumberCalculator.java
```3. Run the application:
```bash
java numbercalculator.NumberCalculator
```## Code Overview
- The program uses Java Swing for the GUI to prompt users for inputs and display results.
- Input validation ensures users are prompted again if invalid data is entered.
- The results include:
- A list of the numbers entered.
- The total of the numbers.
- The average of the numbers.## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.