https://github.com/dbc2201/sumofseries2
https://github.com/dbc2201/sumofseries2
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dbc2201/sumofseries2
- Owner: dbc2201
- Created: 2022-06-19T18:42:33.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-19T19:01:32.000Z (about 4 years ago)
- Last Synced: 2025-02-12T08:39:28.409Z (over 1 year ago)
- Language: Java
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sum of Series 2 : Convergent Series
## Java Programming Course
---
**Course 1**: Problem-Solving and Computational Thinking in Java
**Sprint 5**: Working with Looping Constructs
---
Problem Statement
---
Calculate the sum of the following series
$$sum=1+1/2+1/4+1/8+...+1/n$$
Where `n` is a number input by the user.
---
Task
---
1. Open the [source code file](src/main/java/io/github/dbc/SeriesSumFinder.java) and complete the code.
2. Open the [test case file](src/test/java/io/github/dbc/SeriesSumFinderTest.java) and run the test cases to
check your code.
---