Skip to content

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.

License

Notifications You must be signed in to change notification settings

nurulashraf/java-number-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/yourusername/NumberCalculator.git
    cd NumberCalculator
  2. Compile the program:

    javac -d . NumberCalculator.java
  3. Run the application:

    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 file for details.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages