Question: CSW8 Learning Goals inthis lab we will be using - dota structures and theit methods to soit numbera by value - Wraing functions that use

CSW8 Learning Goals inthis lab we will be using - dota structures and theit methods to soit numbera by value - Wraing functions that use if/eise statersents - using >, ma, ss sx, and/ougot in your conditiona instructions Wiat a function get_niddte_nueber () that tabes thvee numbers as parameters (numenc valueg, oot just integers) and cerums ahe midde number. The logic for calculating the middle of the there values should be ins de this furiction. Whee a program that asks the user for thiee nunbers Vout program chould cal the get atidd te_nusber() tanction to get bio midde of the three values in your program outoug tho numbers in the order that they were proyided and then ceport the midde value as shown in the earnole below Example inqut: Outrut the miait of 1.04,15.0, and 7.0 is 1,0 Tent your code teis wite an atsert staterment that verifies that caling the function with the values given the example above res,rns the expected value Bsaert lget miadegnutber 7,15,31=7.0 White a couple moce absert ctaternents Notea: 1. Printang atvould be outede the furction in this iab 7. Be careful with the indontacon cie, the spaces helore the biocka of codel enpocialy in nested if 3. The moddie walue in greater than or the sane os the arolest number and ins than or the some as the favgeat inambe. Challenge You can noive thus lab using ifielse statementi, and youcian also use you knowedge from the prevoun mectons fo generite a satioct. main py Lad iat mek ansinine. 1 def get midqle numerc...): "Oscument your functiun far colcutating the midille valuet" - finish the functiont. if nome on mat inut form the wer 4 get ejderle mater witing youn aiction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
