View the step-by-step solution to:

Question

This question was created from Module 4 - Looping and Selection Practice.pdf https://www.coursehero.com/file/48127888/Module-4-Looping-and-Selection-Practicepdf/

48127888-398200.jpeg
48127888-398200.jpeg

For this assignment you are going to be writing a series of modules to perform a variety of tasks. Most are
independent of one another but some may need to call others to perform their task. Each module will have a
specific number of points associated with it. You may choose the modules you wish to complete and the order
you wish to complete them in. The assignment is worth 50 points but you can do more and go over for extra
credit up to a 60/50.
Directions: Create each method as it is described. Carefully write the method heading to match what is
described. Failure to do so will result in the test file not running correctly and a loss of all points for the
problem.
* *
*Special note to those with advanced knowledge. You are being assessed on your ability to use looping and
selection structures. Points will only be given to modules that are created using a selection and/or looping
strucutres. You are not to use any built in functions aside from print and range, and advanced techniques for
sequences such as indexing or slicing
Method: sumOdds(value: int): Points - 5
This method will sum all the odd values from 1 upto the value passed by parameter. This will display the sum
as an integer value.
Method: characterCount(phrase: str): Points - 5
This method will count the number of characters in the phrase that is passed by parameter. You cannot use

Top Answer

Points to consider: We need to find the sum of the odd numbers... View the full answer

Capture.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question