CARPIT - 40 DATA 20 30 10 50 P = T C 60 PRINT" THE PRICE TO CARPET YOUR 20 BY 30 FOOT ROOM =" P"DOLLARS" 65 DATA-999 999 70 END Ok

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 LIST 1 REM MATTHEW HEELAN 2/26/2007 INSTRUCTOR: COACH SECTION: D1 2 REM PROBLEM 3 USE READ/DATA STATEMENT TO DETERMINE COST TO CARPET A 20 BY 30 FOOT ROOM 10 READ A,B,C 11 IF A = -999 THEN GOTO 70 20 LET T = A * B 30 LET T = T / 9
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 40 DATA 20 , 30 , 10 50 P = T * C 60 PRINT " THE PRICE TO CARPET YOUR 20 BY 30 FOOT ROOM =" , P , "DOLLARS" 65 DATA -999, - 999 70 END Ok RUN THE PRICE TO CARPET YOUR 20 BY 30 FOOT ROOM = 666.6666666666667 DOLLARS Ok...
View Full Document

This note was uploaded on 02/19/2009 for the course CS 160 taught by Professor Coach during the Spring '06 term at Santa Barbara City.

Ask a homework question - tutors are online