Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a function rainbow _ or _ age that takes a string argument if argument is a digit return the value of calling age _
create a function rainboworage that takes a string argument
if argument is a digit return the value of calling age with the str value cast as int
if argument is an alphabetical character return the value of calling rainbowcolor with the str
if neither return FALSE
In : #
In : add numbers from input using a cast to integer and display the answer
In : # Multiply numbers from input using cast and save the answer as part of a string "the answer is
# display the string using print
In : # get input of numbers and display the average: num num divided by
In : # get input of numbers and subtract the largest from the smallest use an if statement to see which is larger
# show the answer
In : # Divide a larger number by a smaller number and print the integer part of the result
# don't divide by zero! if a zero is input make the result zero
# cast the answer to an integer to cut off the decimals and print the result
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