Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.67 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.67 KB

Daiyaan Ijaz

Lab_12_W20

From this point of my final object-oriented lab assignment, I will be updating it to GitHub

  • The requirements are the bare minimum, and my extra implementation is unnecessary, but since it will be my last I might as well make it last too.

Table of Contents

I know, it's very LONG.


Assignment

To get started...

1) Prompt the user to enter in a positive integer and assign it to a variable of type int

2) Write a recursive method to return the sum of the numbers 1 to , where is a positive integer

  • Tasks
    • 🍴 base case n = 1
    • 🍴 reduced problem n-1
    • 🍴 general solution n + the sum of 1 + 2 + ... n-1

3) Call your recursive method from Main to output the result

  • 🔃 The result must include both the number input from the user and the total sum in a sentence that makes sense.

Features

Changelog

  • Initial Commit: Basic structure and simple driver, menu, methods, start, Classes. Functionality: Stores and prints positive integers from user input respectively.

  • add .gitignore file ignoring all IDE setting files


License

License