03-09-2009, 01:18 AM
(This post was last modified: 03-09-2009, 01:22 AM by qbasicnewbie.)
could someone please walk me through how to make a table using qbasic please add me on msn rs2maniak500@hotmail.com or post here
heres what i have i just cant figure out how to put the output section into a table
REM *****calculating area and perimeter of squares*****
REM David Rosenberg
REM 3/5/09
COLOR 25,7
CLS
REM INPUT
LET sport1$ = football
LET length1 = 360
LET width1 = 190
LET sport2$ = baseball
LET length2 = 94
LET width 2 = 50
REM PROCESSING
LET perimeter1$ = 2*length1+2*width1
LET area$ = length1*width1
LET perimeter2$ = 2*length2+2*width2
LET area2$ = length2*width2
REM OUTPUT
PRINT "The length (feet) of a football field is: " length1
PRINT "The width (feet) of a football field is: "; width1
PRINT "The perimeter (feet) of a football field is: " perimeter1
PRINT "The area (square feet) of a football field is: ";area1
PRINT
PRINT "The length (feet) of a basketball court is "; length2
PRINT "The width (feet) of a basketball court is: "; width2
PRINT "The perimeter (feet) of a basketball court is: "; perimeter2
PRINT "The area (square feet) of a basketball court is: "; area2
END
heres what i have i just cant figure out how to put the output section into a table
REM *****calculating area and perimeter of squares*****
REM David Rosenberg
REM 3/5/09
COLOR 25,7
CLS
REM INPUT
LET sport1$ = football
LET length1 = 360
LET width1 = 190
LET sport2$ = baseball
LET length2 = 94
LET width 2 = 50
REM PROCESSING
LET perimeter1$ = 2*length1+2*width1
LET area$ = length1*width1
LET perimeter2$ = 2*length2+2*width2
LET area2$ = length2*width2
REM OUTPUT
PRINT "The length (feet) of a football field is: " length1
PRINT "The width (feet) of a football field is: "; width1
PRINT "The perimeter (feet) of a football field is: " perimeter1
PRINT "The area (square feet) of a football field is: ";area1
PRINT "The length (feet) of a basketball court is "; length2
PRINT "The width (feet) of a basketball court is: "; width2
PRINT "The perimeter (feet) of a basketball court is: "; perimeter2
PRINT "The area (square feet) of a basketball court is: "; area2
END