Assignment
Assignment 1.1
Assignment 1.1
Completion requirements
Receive a grade
Create a new program, test it and upload it using your name and followed by AS1.1 in the programs file name. As an example a programs filename could be Name_Surname_AS1.1.py
For your effort you will be graded and you will have another try if you want to get a better grade. Passing grade is 60%.
The program should ask the user for the information needed to find the area of a trapezoid, and then print the area. The formula for the area of a trapezoid is:
A = (x1+x2)*h/2
A is the area
x1 and x2 are the two bases of the trapezoid
h is the height of the trapezoid
Sample run:
Area of a trapezoid
Enter the height of the trapezoid: 5
Enter the length of the bottom base: 10
Enter the length of the top base: 7
The area is: 42.5