All pastes #747834 Raw Edit

Stuff

public text v1 · immutable
·published 2007-10-24 12:00 UTC
rendered paste body
1. File 
3. Text
5. False 
7. True
9. Sequential 
11. True
13. True
15. 
open “name” for output as namefile
write “put in a name. enter * when done.”
input name
while name <> “*”
write namefile, name
write “enter a name. enter * when done.”
input name
end while
close namefile
17. False
19. “A”, 25 <CR> <EOF>
21. “A”, 25 <CR> ”E”, 15 <CR> <EOF>
23. “A”, 25 <CR> ”C”, 75 <CR> ”E”,15 <CR> <EOF>
NOTE: (<CR> is where the file is closed <EOF> is the end of file) 
25. True 
27. “Arthur”<CR> <EOF>
29. “Arthur”<CR> “Corinne” <CR> “Marjorie” <CR>“ Michael” <CR>
“Sam” <CR> <EOF>
31. change the if statement to if name1 > name2 then
33. control break processing








Chapter 4 reading check
Section 1
1.	a. 2, 4 b. 2, 4
Section 2.
4.For Num = 1 Step 1 To 10
In pute Response
Write Response
	End for
Section 3
1.	Write “Enter A Character, Enter “to quit”
In pute Char
Until Char = “*”
.Section 4
      4.   Repeat
	Input X
	Until X >0
	Untill X is <10

Section 5
       1.  a. cost = 100,000 , revenue = 0, profit = -100,000
      b. cost = 110,800 , revenue = 9000, profit = -101,800

Section 4 Review
1.    A True B True C False
3.    A True B False
5.    A Posttest B write num set num = num -1 until num = 0
7.    A Pretest B 2 C subtract  one if number is greater/less than 0

9.     
11.  False
13.  False
15.  A k B initial value 3 incriminates is 2 limit is 8 
17.  Negative
19.  Sentinel value 
21.  Repeat
23.  a 5 b 4
25.  X=2  
27 A. A  B. B
29 set A = 0
31. Pretest 
33 15
35. Pretest
37. True
39. False