Part two - Marshmallows in a microwave was all about melting marshmallows in the microwave. Then they brought the maths into with speed = frequency x length. The program needed to ask
Megahertz of your microwave oven:
Metres between the melted marshmallows:
and use that data in the equation in which you had to convert integer into float so we get the exact result. The hardest bit in this part was to get the maths right with the float. The math -
c = float(meg) * 1000000 * float(met) * 2
c = float(c)
print ("c is approximately", c , "m/s")
No comments:
Post a Comment