Skip to content

This program classifies earthquakes based on their magnitude according to the Richter scale. It prompts the user to input the magnitude and then determines the appropriate classification.

Notifications You must be signed in to change notification settings

faruk-ayrcc25/EarthquakeClassifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Earthquake Magnitude Classifier

Overview

This program is a simple Java application that classifies earthquakes based on their magnitude according to the Richter scale. It prompts the user to input the magnitude and then determines the appropriate classification.

Features

  • User-friendly interface: Users can easily input the magnitude of the earthquake.
  • Classification based on Richter scale: The program categorizes earthquakes into various classes based on their magnitudes.
  • Easy to understand: The code is well-commented and structured, making it easy to understand and modify.

Getting Started

To run this program locally, follow these steps:

  1. Ensure you have Java installed on your system.
  2. Clone this repository to your local machine.
  3. Open the project in your preferred Java IDE.
  4. Compile and run the EarthquakeClassifier.java file.

Usage

  1. Run the program.
  2. Enter the magnitude of the earthquake when prompted.
  3. The program will output the classification of the earthquake.

Algorithm

The program follows a simple algorithm to determine the classification of the earthquake based on its magnitude:

  1. Prompt the user to input the magnitude.
  2. Based on the magnitude range, classify the earthquake.
  3. Print the classification.

Example

About

This program classifies earthquakes based on their magnitude according to the Richter scale. It prompts the user to input the magnitude and then determines the appropriate classification.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages