Description
Problem/Question:
– Problem1: \
Write C++ code that sum the numbers from 1 to 100
– Problem2: \
a. Write C++ code that sum reciprocals (1/1 + 1/2 + … + 1/99 + 1/100)\
b. Write C++ code that sum reciprocals (1/100 + 1/99 + … 1/2 + 1/1)\
compare a and b
– Problem3: \
a. Write C++ code that sum multiplication reciprocals (1/(1×1) + 1/(2×2) + … ) \
b. Write C++ code that sum reciprocals (1/(100×100) + 1/(99×99) + … )
TO-DO:
– clone your repo to your local computer
– ”’ <b>git clone repo_https_url</b> ”’
– repo https url is found under code tab in your github
– Edit your name on top on README.md file.
– Only Look at the main function (file name: main.cpp) to understand the calling of functionSum.cpp
– Edit file in src folder ONLY:
– functionSum.cpp
– Each file has the coded prototype for each function to start writing your code.
– Push your answers or edit directly in GitHub
– use git in your terminal to add files, and add comments on your commits, and finally submit files