You are on page 1of 4

Prelude to Programming 6th Edition

Venit Solutions Manual


Visit to Download in Full: https://testbankdeal.com/download/prelude-to-programming-
6th-edition-venit-solutions-manual/
Prelude to Programming, 6th Edition Elizabeth Drake

Answers to Even-Numbered Review Questions Prelude to Programming

Chapter 7
2. Index or subscript
4. 6
6. True
8. False
10. False
12. True
14. False
16. False
18. False
20. Declare K As Integer
Set K = 0
While Names[K] != “ZZZ”
Write Names[K]
Set K = K + 1
End While
22. 14
9
5
2
0
24. A Boolean variable can only take the values of true or false
26. For (K = 0; K < 9; K++)
If (Name[K] != “ “) Then
Write Name[K]
End If
End For
28. Declare First[] As Character, K, Lgth As Integer
Set K = 0
While (FullName[K] != “ “)
Set First[K] = FullName[K]
Set K = K + 1
End While
Set Lgth = Length_Of(First)
Write “The number of letters in the first name is “ + Lgth

© 2015 Pearson Education 1


Prelude to Programming, 6th Edition Elizabeth Drake

30. Declare Last[25] As Character


Declare First[25] As Character
Declare J As Integer
Declare K As Integer
For (K = 0; K < 25; K++)
If FullName[K] != “ “ Then
Set First[K] = FullName[K]
Else
Set J = K + 1
End For
End If
End For
For (K = J; K < 25; K++)
If FullName[K] ! = “ “ Then
Set Last[K] = FullName[K]
Write Last
End If
End For
32. Declare X[5, 5] Of Integers
For (K = 0; K <= 4; K++)
For (J = 0; J <= 4; J++)
Write “Enter a number: “
Input X[K, J]
End For(J)
End For(K)
For (K = 0; K<= 4; K++)
Set Sum = 0
For (J = 0; J <= 4; J++)
Set Sum = Sum + X[K, J]
End For(J)
Write Sum
End For(K)
34. All entries are on separate lines:
1 0 0 0 1 0 0 0 1

© 2015 Pearson Education 2

You might also like