! **************** IDENTIFICATION
********************
! Laura
Sirbu
! Comp.
Sci. Pd. 2/3
! Roberto
Clemente Middle School
! ACSL post
office Junior Division
! variables:
!
Length.... Inputed from the user
!
Height.... Inputed from the user
!
Thick..... Inputed from the user
!
x......... makes the program run five times
!
***************************************************
! runs program five times
FOR x = 1 to 5
!
opening message
PRINT
PRINT
"Please input length, height, and thickness of the mail, all in different
input lines."
! data
from user
INPUT
length
INPUT
height
INPUT
thick
IF
length >= 3.5 and length <= 4.25 and height >= 3.5 and height <= 6
and thick >= 0.007 and thick <= 0.016 then
!
regular post card
PRINT
"regular post card"
ELSE IF
length > 4.25 and length < 6 and height > 6 and height < 11.5 and
thick >= 0.007 and thick <= 0.016 then
!
large post card
PRINT
"large post card"
ELSE IF
length >= 3.5 and length <= 6.125
and height >=5 and height <= 11.5 and thick >=.016 and thick
<= .25 then
!
envelope
PRINT
"envelope"
ELSE IF
length > 6.125 and length <24 and height >= 11 and height <= 18 and
thick >= .25 and thick <= .5 then
!
large envelope
PRINT
"large envelope"
ELSE
IF length >= 24 and height >18
and thick >.5 and (thick*2 + height*2 + length) <= 84 then
!
package
PRINT
"package"
ELSE IF
(thick*2 + height*2 + length) > 84 and (thick*2 + height*2 + length) <
130 then
!
large package
PRINT
"large package"
ELSE
!
unmailable
PRINT
"unmailable"
END IF
NEXT x
END