Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm having trouble with this lab that uses python. CMPSC-122: Intermediate Programming Summer 2018 Lab #15 Due Date: 07/27/2018, 11:59PM EST Instructions: The work in

I'm having trouble with this lab that uses python.image text in transcribed

CMPSC-122: Intermediate Programming Summer 2018 Lab #15 Due Date: 07/27/2018, 11:59PM EST Instructions: The work in this lab must be completed alone and must be your own. Do not copy code from online sources. That is considered plagiarism. Use the starter code provided on this CANVAS assignment. Do not change the function names or given started code on your script The file name must be LAB15.py (incorrect name files will get a 1 point deduction) A doctest is provided as an example of code functionality. Getting the same result as the doctest does not guarantee full credit. You are responsible for testing your code with enough data as possible Each function must return the output (Do not use print in your final submission otherwise, you will get a 1 pt deduction) Do not include test code outside any function in the upload. Remove all your testing code before uploading your file. Do not include the input function in your submission. Goal [10 pts] Write the function makingSound(n,sound) that takes a positive integer number n and a string and returns a function that takes in a positive integer number k which will return a list with all numbers from 0 to k-1 but adding the string sound instead for all the numbers that are divisible EXAMPLE >>catSound-makingSound (6, 'Meow) >>catsound (10) I'Meow', 1, 2, 3, 4, 5, Meo, 7, 8,9] >>makingSound (6, 'Meow) (10) ['Meow*, 1, 2, 3, 4, 5, Meow, 7, 8, 9]

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions