Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 942 Bytes

File metadata and controls

28 lines (23 loc) · 942 Bytes

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