Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. please use python and show that test cases work Pl 3. Function One: countDown The first function you will write should be called 'countDown'.
1. please use python and show that test cases work Pl
3. Function One: countDown The first function you will write should be called 'countDown'. Your function should take zero (0) arguments. The function should return one (1) list containing integers from 10 to 1 and finally, the string "Liftoff!". (i.e. [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 'Liftoff') You function must be recursive (i.e., it should contain a call to its elf within the function body). You will get NO credit if you use any loops (for, while, etc) 4. Function Two: myLSearch Assume you are given a sorted list of integers to search. Your job is to write a search algorithm to find the index of a particular number. Page 2 of 3 CS 105 Intro to Computing Non-Tech Spring 2018 The second function you will write should be called 'myLSearch'. Your function should take two (2) arguments: an integer to search for and a sorted list of integers. The function should return one (1) integer, the index in the input list containing the input integer. If the input integer does not exist in the list, your function should return 1 For credit, you MUST use either a for or a while loop. This search algorithm should NOT be recursive. There should be no call to itself in the body of the function or you will get no credit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started