Exilian

Site Questions & Governance: The Citadel Quarter => Courses => Academy Archives => The Exilian Academy => Archived Larger Sections & Projects => Site Archive => Questions and Suggestions - The High Court => OO Programming => Topic started by: Lizard on August 21, 2012, 10:17:07 PM

Title: Tutorial Group One
Post by: Lizard on August 21, 2012, 10:17:07 PM
This is the area for Tutorial Group One to discuss course notes, exercises, and anything else you need to in order to finish things successfully. I'll be dropping by on occasion to sort out anything that you can't sort yourselves/clear up issues that most people are struggling with.

Keep it above board, kids, and have fun!
Title: Re: Tutorial Group One
Post by: comrade_general on August 29, 2012, 09:37:36 PM
I've got everything working like in your initial tutorial(s). Looking forward to the next step! :)
Title: Re: Tutorial Group One
Post by: Othko97 on August 29, 2012, 09:54:07 PM
As above. :D
Title: Re: Tutorial Group One
Post by: Lizard on September 03, 2012, 10:45:10 PM
Excellent stuff! New course notes are up, btw.

Everything alright with everyone? Notes written clearly enough, etc?
Title: Re: Tutorial Group One
Post by: comrade_general on September 04, 2012, 12:20:34 AM
On the repetition thing I got the 1-10 printout by changing the (int i = 0; i < 10; i++) to (int i = 1; i < 11; i++).
Then I did (int i = 10; i > 0; i--) to make it count backwards.
Title: Re: Tutorial Group One
Post by: Lizard on September 04, 2012, 10:51:07 PM
Quote from: comrade_general on September 04, 2012, 12:20:34 AM
On the repetition thing I got the 1-10 printout by changing the (int i = 0; i < 10; i++) to (int i = 1; i < 11; i++).
Then I did (int i = 10; i > 0; i--) to make it count backwards.

Good solutions.

You could also have done (int i = 1; i <= 10; i++) - for a nice example of the use of different comparison operators!
Title: Re: Tutorial Group One
Post by: Othko97 on September 13, 2012, 07:19:19 AM
I did for(i = 1; i <= 10; i++).  ;D