Top Posters
Since Sunday
g
3
3
2
J
2
p
2
m
2
h
2
s
2
r
2
d
2
l
2
a
2
New Topic  
choker1998 choker1998
wrote...
Posts: 244
Rep: 0 0
7 years ago
If the following pseudocode were an actual program, what would it display?

Declare String str = "a1b2c3d4"
Declare Integer index
Declare Integer num = 0
For index = 0 To length(str) - 1
    If isDigit(str[index]) Then
        Set num = num + 1
    End If
End For
Display num

a.   3
b.   0
c.   5
d.   4
e.   None of the above.
Textbook 
Starting Out with Programming Logic and Design

Starting Out with Programming Logic and Design


Edition: 3rd
Author:
Read 229 times
3 Replies
Replies
Answer verified by a subject expert
wheelerwheeler
wrote...
Posts: 258
Rep: 0 0
7 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here
1

Related Topics

wrote...
6 years ago
thanks i really needed this
wrote...
3 years ago
thank you
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1156 People Browsing
 120 Signed Up Today
Related Images
  
 267
  
 345
  
 334
Your Opinion
What's your favorite math subject?
Votes: 293