Assignment
Assignment 1.1
Assignment 1.1
Completion requirements
Opened: Saturday, 6 May 2017, 12:00 AM
Create a new program test it and upload it. The program will 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