Skip to content

This program provides a console-based interface to calculate the sum of two distinct mathematical series

Notifications You must be signed in to change notification settings

danieldotwav/Java-Recursive-Series-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Java-Recursive-Series-Calculator

This program provides a console-based interface to calculate the sum of two distinct mathematical series

  1. A division-based series defined as ∑ (1 / (i + (i - 1))) from i=2 to n.
  2. A multiplication-based series defined as ∑ (i²) from i=1 to n.

Features

  • Enumerated menu options for better code clarity and error handling.
  • Recursive methods for both series calculations.
  • Error handling for invalid and non-numeric inputs.
  • Aesthetically pleasing console output with centered titles.

How to Use

1. Clone the Repository:

Clone this GitHub repository to your local machine using the following command:

git clone <https://github.com/danieldotwav/Java-Recursive-Series-Calculator>

2. Navigate to the project directory:

cd Java-Recursive-Series-Calculator

3. Compile the Java file:

javac Main.java

About

This program provides a console-based interface to calculate the sum of two distinct mathematical series

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages