Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need all the help i can get 3.2 You are a race official on an ultra marathon (100 miles), and you want to display the
need all the help i can get
3.2 You are a race official on an ultra marathon (100 miles), and you want to display the number and elapsed time for each runner on a big display. Write a program to generate the phrase for the display based on the runner number, the mile marker, and the elapsed time. >>> runner(42,10,"1:12:09") Runner #42 passed mile 10 at time 1:12:09 3.4 Create a function like the pyramid function that does the upside-down version. Your function invertedPyramid should also take an input character and print an inverted pyramid. 3.6 We fixed justvowels so that it works with lowercase or uppercase vowels. Fix notvowels so that it doesn't print out uppercase vowels. (Try it as it is in the chapter, and you will see that it does print uppercase vowels, even though the function is supposed to only print not vowels.) Actually, do two versions of notvowels, using each of the two methods that we used to fix justvowels. 3.7 One of the below programs that when called like this (with the underscore representing a digit from 1 to 4) generates this output: 'kcud rebburrubber duck >>> dup_("rubber duck") Which one? See Book for code to choose from. 3.8 Try giving our doubledutch program a full name like John Smith. What happens to the space? What if you include punctuation like periods or hyphens? How could you create more full featured doubledutch that gets around these problems? 3.9 Write a program that accepts a string as input, then prints out the vowels in that string and then prints the consonants in that string. >>> splitem("elephant") Vowels: eea Consonants: Iphnt 3.10 Change the encode function so that spaces are simply skipped. 3.11 Change the encode function so that punctuation is simply skippedStep 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