Last night, I figured out how to write my psedocode for fing the area of a trapazoid. It was hard but I managed. Now I need help with writing the program. Everytime I try to run it something a little box comes on screen and says error, but I don't know what it is. Can someody, anybody please help me!
THIS IS THE PROGRAM
PROGRAM Trapezoid
!-----------------------------------------------------------
! My Name Here CS 212/Math 201 February, 2 2006
! Assignment #2
!
! Program to calculate the area of the trapezoid.
! Base1, Base2, Area, Sum : the four real numbers
! Height : the integer number
! Area : one-half the height times the sum of Base1 and Base2
! Sum : the sum of Base1 and Base2
!
! Output: Title, Base1, Base2, Height, Area
!---------------------------------------------------------------------------------------
IMPLICIT NONE
REAL :: Base1, Base2, Area, Sum
INTEGER :: Height
Height = 3
! Calculate the sum of Base1 and Base2
Sum = Base1 + Base2
! Now Calculate the Area
Area = .05*Height*Sum
PRINT *, "Trapezoid Area Computation"
PRINT *, "The lenght of the first base:", READ *, Base1, PRINT *, Base1
PRINT *, "The lenght of the second base:", READ *, Base2, PRINT *, Base2
PRINT *, "The height:", Height
PRINT *, "The area:", Area
END PROGRAM Trapezoid