× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
w
5
a
3
j
2
a
2
t
2
u
2
r
2
j
2
j
2
l
2
d
2
y
2
New Topic  
ian18 ian18
wrote...
Posts: 223
Rep: 0 0
6 years ago
What are the contents of the file named legs after the given program segment is executed? Assume the content of the file named Animals originally contains the following:
      Animals:    “Duck”,2<CR>”Dog”,4<CR>”Octopus”,8<CR><EOF>
       pseudocode:   Open  “Animals” For Input As Creatures
            Open “legs” For Output As TempFile
            While NOT EOF(creatures)            
               Read Creatures, Name, Number
               If Name != “Octopus” Then            
                  Write TempFile, Name, Number
               End If
            End While
            Close Creatures, TempFile

a.   “Duck”,2<CR>”Dog”,4<CR>
b.   “Duck”,2<CR>”Dog”,4<CR><EOF>
c.   “Octopus”,8,<CR><EOF>
d.   “Duc”Octopus”,8<CR><EOF>
Textbook 
Prelude to Programming

Prelude to Programming


Edition: 6th
Authors:
Read 136 times
1 Reply
Replies
Answer verified by a subject expert
penia_smilespenia_smiles
wrote...
Posts: 241
6 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

ian18 Author
wrote...

6 years ago
I appreciate what you did here, answered it right Smiling Face with Open Mouth
wrote...

Yesterday
This calls for a celebration Person Raising Both Hands in Celebration
wrote...

2 hours ago
Correct Slight Smile TY
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1439 People Browsing
Related Images
  
 684
  
 224
  
 966