Question: VIDEO LINK: https: / / video . search.yahoo.com / search / video; _ ylt = Awr . 0 HSMIlZjGSo 0 PpFXNyoA; _ ylu = Y

VIDEO LINK: https://video.search.yahoo.com/search/video;_ylt=Awr.0HSMIlZjGSo0PpFXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZANMT0NVSTA1M18xBHNlYwNwaXZz?p=using+operators+and+expressions+IN+PYTHON&fr2=piv-web&type=E210US885G0&fr=mcafee#id=1&vid=d1d948af73cde170d6b85610891811b5&action=viewLinks to an external site.
Instructions:
For each program below, add a print("my name is "), with your name substituted in for .
Open an MSCode window and enter the code from Figure 1-7 that computes the area of a triangle. Test the program with different inputs by running the program at least 3 times. Submit the code as Lab1pt1.py.
Write a program that calculates and prints the number of minutes in a year. Submit the code as Lab1pt2.py.
A standard science experiment is to drop a ball and see how high it bounces. Once the "bounciness" of the ball has been determined, the ratio gives a bounciness index. For example, if a ball dropped from a height of 10 meters bounces 7 meters high, the index is 0.7, and the total distance the ball traveled from "top to top" is 17 meters after one bounce (10 DOWN, 7 UP). If the ball were to continue bouncing, the distance is after 2 bounces is would be (in meters)10+7+7+4.9=28.9m. Note that distance for each successive bounce is the distance to the floor plus 0.6 of that distance as the ball comes back up. Write a program that lets the user enter the (1) initial height from which the ball is dropped, (2) the bounciness index, and (3) the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball. [Enhance the output by printing the equation as it is being bounced (calculated). i.e., print out 10+6+6+3.6=25.6 and not just 25.6]. Submit the code as Lab1pt3.py.Figure 1-7
Python script in an IDLE window
myprogram.py -/Users/lambertk/myprogram.py (3.6.1)
Width = int(input("Enter with width: "))
height = int(input("Enter with height: "))
area = width ?** height
print("The area is", area, "square units.")
 VIDEO LINK: https://video.search.yahoo.com/search/video;_ylt=Awr.0HSMIlZjGSo0PpFXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZANMT0NVSTA1M18xBHNlYwNwaXZz?p=using+operators+and+expressions+IN+PYTHON&fr2=piv-web&type=E210US885G0&fr=mcafee#id=1&vid=d1d948af73cde170d6b85610891811b5&action=viewLinks to an external site. Instructions: For each program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!