2023 Grading Information This Lab Homework is worth 76 points and due by Sunday of week 2 | Assignment Collections

Computer Science 2023 computer science

2023 Grading Information This Lab Homework is worth 76 points and due by Sunday of week 2 | Assignment Collections

Grading Information: This Lab Homework is worth 76 points and due by Sunday of week 2 at midnight CST.

The purpose of this assignment is to assess if you can create a program that uses recursion.

Directions Points
The file must be called week2Prog.cpp 5
Program Definition

  1. Create program definition for sumDigits Function. Function will receive and return an integer.
6
Main Method

  1. Ask for input for numerous non-negative integers.
  2. Using pass-by-reference, pass integer received into recursive function called sumDigits.
  3. Receive result back from sumDigits and output result to screen.
  4. Include: system(“PAUSE”); after your output to pause the screen.
    See example below.
20
sumDigits Function (Receives integer)

  1. Recursively call sumDigits adding up the integers received.
  2. Return result to main method for output.
  3. If a single digit is received, just return it to the main method.
30
Ensure you include ALL .cpp file(s) and any associated, student-defined .h (header) files required to make your program compile and run. The only files in the dropbox should be .cpp and .h files.  Do not turn in .zip, .exe, .rar, etc files. 10
Upload your page to the Dropbox.

NOTE: Complete your activity and submit it to the Dropbox by clicking on the Dropbox tab at the top of the course frame and choosing the correct Weekly Activity. 
If needed, click on the Help button above for more information on Course Tools/Using the Dropbox.

5

Total Possible Points

76
Example output of your program

Run 1:
Enter a nonnegative integer: 23
The sum of the digits of 23 is 5

Run 2:
Enter a nonnegative integer: 1234
The sum of the digits of 1234 is 10

Run 3:
Enter a nonnegative integer: 90513
The sum of the digits of 90513 is 18

Run 4:
Enter a nonnegative integer: 2147483647
The sum of the digits of 2147483647 is 46

 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational