Jan-13-2019, 04:25 PM
(This post was last modified: Jan-13-2019, 04:35 PM by ichabod801.)
I need to convert a pretty big block of Psuedo Code into Python Code. Could someone give me a hand?
I've been given this to start with:
I've been given this to start with:
Flaptime =0 slaptime =0 total =0 average = 0.0 i = 0 isTired = False while i<64 and isTired == False: # insert you solution belowand the Psuedo Code is this:
Flaptime =0 slaptime =0 total =0 average = 0.0 i = 0 isTired = False while i<64 and isTired == False input laptime total = total + laptime if i == 0 Flaptime = laptime Slaptime = laptime end if if laptime < Flaptime then Flaptime = laptime else if laptime > Slaptime then Slaptime = laptime end if input isTired end while average = total /i output ("the total time is " &total & "average " &average & "Fastest time " &Flaptime & "slowest time is "&Slaptime )I'm not the wisest at this, and I'm struggling quite a bit. I'd really appreciate a hand