Custom Search
 
  


Chapter 3 Questions

 

Programming Intro

Chapter 4 More on solving problems with basic

 
CHAPTER 3

EXERCISE ANSWERS

1.       10 LET M = 182 + 178 + 174 + 170 + 187 + 183

20 PRINT "MILES JOGGED IN SIX MONTHS ARE ";M

30 END

RUN

MILES JOGGED IN SIX MONTHS ARE 1074

2.       10 LET M = 182 + 178 + 174 + 170 + 187 + 183

20 LET A = M/6

30 PRINT "MILES JOGGED IN SIX MONTHS ARE ";M

40 PRINT

50 PRINT "AVERAGE MILES JOGGED PER MONTH IS ";A

60 END

RUN

MILES JOGGED IN SIX MONTHS ARE 1074

AVERAGE MILES JOGGED PER MONTH IS 179

3.         10 LET F = 76

20 LET F1 = 88

30 LET F2 = 96

40 PRINT (F 32)*5/9,(F1 32)*5/9,(F2 32)*5/9

50 END

RUN

24.44     31.11     35.55

4. valid numeric-variable names

A,B,E

invalid numeric-variable names

C. must be alphabetic

D. first character must be alphabetic

F. second character must be numeric

G. variable name can only be two characters

H. valid only for string-variables

5. A. LET A = (X + Y)/Z

B. LET B = X**2/Y**2

C. LET C = (X + Y)**2/Z

D. LET D = (X**2/(Y + Z))**2







Western Governors University
 


Privacy Statement - Copyright Information. - Contact Us

Integrated Publishing, Inc. - A (SDVOSB) Service Disabled Veteran Owned Small Business