Skip to main content
elearn.ellak.gr
  • Home
  • More
You are currently using guest access
Log in
Home
  1. Open Courses in English
  2. python_ellak_may_2017
  3. Week 1 - May 6
  4. Assignment 1.1
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

◄ 1st Week's - Quiz 2
Assignment 1.1 - Answer ►
You are currently using guest access (Log in)
Data retention summary
Get the mobile app
Powered by Moodle