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.
- 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.
- Java Development Kit (JDK) 8 or later.
-
Clone the repository:
git clone https://github.com/yourusername/NumberCalculator.git cd NumberCalculator
-
Compile the program:
javac -d . NumberCalculator.java
-
Run the application:
java numbercalculator.NumberCalculator
- 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.
This project is licensed under the MIT License. See the LICENSE file for details.