Difference between revisions of "CSC231 Homework 6 2015"

From dftwiki3
Jump to: navigation, search
Line 70: Line 70:
 
Explain carefully how you derive your answers.  Prefered answers are answers that contain a program (in the language of your choice) demonstrating/illustrating in one way or another the answers to the various questions.
 
Explain carefully how you derive your answers.  Prefered answers are answers that contain a program (in the language of your choice) demonstrating/illustrating in one way or another the answers to the various questions.
 
<br />
 
<br />
==Problem #3==
+
=Problem #3=
 
<br />
 
<br />
  
Line 87: Line 87:
 
}
 
}
 
</source>
 
</source>
 
+
<br />
 
* Why is the loop not an infinite loop?
 
* Why is the loop not an infinite loop?
 
+
<br />
 
* How many times does it go through, and how many terms does it print?  What is the last number displayed?  Is it a valid power of 2?
 
* How many times does it go through, and how many terms does it print?  What is the last number displayed?  Is it a valid power of 2?
 
+
<br />
 
* Same two questions, but assume this time that we are interested in printing powers of 3.
 
* Same two questions, but assume this time that we are interested in printing powers of 3.
 
<br />
 
<br />

Revision as of 10:50, 4 November 2015

--D. Thiebaut (talk) 10:46, 4 November 2015 (EST)


Page under construction!

UnderConstruction.jpg



...