Question: Need help with 5-9. Python is the program Problem 5. 11 point ] A function named new recond consumes two arguments, name, which is a
Problem 5. 11 point ] A function named new recond consumes two arguments, name, which is a string, and age, which is an int. Call new.record with a name of "Amelia" and an age of 12 Problem 6. (1 point A function named cotculate slope consumes two float arguments, rise and run In that order). Assuming two variables dx and dy have already been assigned values, call calculate.slope with a rise of dy and a run of dx. Problem 7. [1 point the result to a variable A function named cube,vo lume consumes a float value and returns a float value. Call cube.volume with an argument of 2.-5 and assign named cube. and returmns a flout vatue. Call cube.volune with an argument of 2.5 and assign Problem 8. 11 point] Assume a variable rconsumes two int arguments and returns the int which is the first argument value raised to the second argument value. named side Jength has already been assigned an int value. Wirite a staternent which u side Jength, and assign that value to a variable volume uses power to compute the volume of a cube where each side is of length Problem 9. 11 point) A function named maximum consumes two int arguments and returns the larger int value. Assume that two variables, age1 and age2, have already been assigned int values. Use xinus to write an expression that is the larger of the two values referenced max age. by age1 and age2 and assign it to a variable named
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
