Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Written Instructions In Part 2 of this Nursery Rhymes assignment, you will define some new additional functions to part 1 on your own, which will

image text in transcribedimage text in transcribed

Written Instructions In Part 2 of this Nursery Rhymes assignment, you will define some new additional functions to part 1 on your own, which will require writing both the full function definition and calling the function in the main. 1. Open your Nursery Rhyme repl (open yours; not mine) 2. Define the new functions 3. Invoke each of the functions at least one time with an argument different from the example New functions to add 1. milk This function should take an integer parameter that represents the number of bottles on the wall. e.g. If the call is made, the results should be: 99 bottles of milk on the wall 99 bottles of milk Take one down and pass it around 98 bottles of milk on the wall 2. hokey_pokey This function should take a String parameter that represents a part of the body. e.g. If the call is made, the result should be: You put your right arm in You put your right arm out You put your right arm in And you shake it all about You do the Hokey Pokey And you turn yourself about That's what it's all about! The function should take an integer parameter that represents the number of speckled frogs sitting on the log. e.g. If the call is made, the result should be: 3 little speckled frogs sitting on a speckled log eating the most delicious bugs yum, yum one jumped into the pool where it is nice and cool now there are 2 little speckled frogs! ribbit, ribbit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions