× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
g
1
New Topic  
DJ DJ
wrote...
Posts: 772
11 years ago
Which of the following best describes what the following Bare Bones program does?

   copy X to Z
   clear X
   incr X
   while Z not 0:
       clear X
       decr Z

   A. It changes the value of X to 1.
   B. If the starting value of X is 0, it sets the value of X to 0. Otherwise, it sets the value of X to 1.
   C. If the starting value of X is 0, it sets the value of X to 1. Otherwise, it sets the value of X to 0.
   D. It ultimately leaves X the same as it was when the program started.

This is for my computing programming course
Read 1410 times
2 Replies

Related Topics

Replies
wrote...
11 years ago
DD
DJ Author
wrote...
11 years ago
Thanks for the homework help.
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1502 People Browsing
Related Images
  
 330
  
 1267
  
 5579
Your Opinion
What's your favorite funny biology word?
Votes: 540

Previous poll results: What's your favorite coffee beverage?