Skip to content

Mohammad-comp/average-calculator-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Average Calculator

A simple Java console application that calculates the sum and average of user-entered grades.

πŸš€ Features

  • Takes input of multiple grades from the user
  • Calculates the total sum
  • Computes the average with decimal precision
  • Supports dynamic input size

🧠 How It Works

  1. Prompts the user to enter how many grades they want to input.
  2. Accepts each grade through user input.
  3. Calculates the sum and average.
  4. Displays the result to the user.

πŸ“¦ Requirements

  • Java 8 or later
  • A terminal or IDE like IntelliJ, Eclipse, or VS Code

πŸ›  Usage

  1. Compile the program:
javac AverageCalculator.java
  1. Run the prpgram:
java AverageCalculator

πŸ’‘ Example

How many grades do you want to enter? 3
Enter grade #1: 85
Enter grade #2: 90
Enter grade #3: 88

Sum: 263
Average: 87.67

πŸ§‘β€πŸ’» Author

Mohammad Abdullah Computer Science Major – Software Engineering Track Adelphi University

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages