Jamil Pages
Jamil Pages
2. OBJECTIVES
The goals of this lab report are to:
- Input: 17
- Input: 20
- Conclusion: The prime number checking function correctly identifies prime and non-prime numbers.
- Input: n = 10
- Actual Output: 30
- Input: n = 20
- Conclusion: The summation of even numbers function performed accurately for multiple inputs.
3. Triangle Classification
- Conclusion: The triangle classification function successfully identified the type of triangles based on
the side lengths.
4. Multiplication Table
- Input: n = 5
- Input: n = 7
- Conclusion: The multiplication table generation function produced accurate results for the specified
inputs.
5. Fibonacci Series
- Input: n = 6
- Expected Output: 0, 1, 1, 2, 3, 5
- Actual Output: 0, 1, 1, 2, 3, 5
- Input: n = 10
- Conclusion: The Fibonacci series function correctly generated the series for the given number of
terms.
- The programs worked well overall, with some minor adjustments needed for special cases, especially
in the prime number check.
3. Challenges:
- The main challenges were ensuring the triangle classification and the logic for prime
numbers were correct.
4. Difficult Parts:
- Creating an efficient way to check for prime numbers was the hardest part, especially
for larger numbers.
5. What I Liked:
6. What I Learned:
- I learned a lot about designing algorithms, debugging, and the importance of thorough
testing.
7. Mapping of Objectives:
- All goals were met successfully, showing a solid understanding of the concepts.
6. SUMMARY
This lab report explored important mathematical functions through five different exercises. The structured
approach helped deepen understanding of algorithms and highlighted the importance of accuracy in
programming.