Due: Thursday, January 31st no later than 11:59 p.m.
Partner Information: Complete this assignment individually.
Submission Instructions: Upload your solution, renamed to YourFirstName-YourLastName-Lab3.py to the BrightSpace Lab 3 Dropbox.
Deadline Reminder: Once this deadline passes, BrightSpace will no longer accept your Python submission and you will no longer be able to earn credit. Thus, if you are not able to fully complete the assignment, submit whatever you have before the deadline so that partial credit can be earned.
Gain experience manipulating strings.
Gain experience solving a problem using iteration.
Gain experience solving a problem using recursion.
Rewrite the body of the count_built_in function to calculate and return the number of z's in the parameter sentence using the built-in count method. For example, if the sentence is Jazz music played during the movie Zootopia, the function should return 3.
Rewrite the body of the count_iterative function to count the number of z's in sentence using a loop. (Do not use the built-in count method.)
Rewrite the body of the count_recursive function to count the number of z's in sentence using recursion. (Do not use the built-in count method.)
Grading – 10 points
3 points – The count_built_in function is implemented correctly.
3 points – The count_iterative function is implemented correctly.
4 points – The base case (2 points) and two general cases (1 point each) of the count_recursive function are implemented correctly.
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Do you need an answer to this or any other questions?