Author Topic: Tutorial Group One  (Read 3818 times)

Lizard

• Moderator
• Posts: 267
• Karma: 3
Tutorial Group One
« 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!
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

• Guest
Re: Tutorial Group One
« Reply #1 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!

Othko97

• SotK Beta
• Patrikios
Voting Member
• Posts: 3520
• Karma: 9
Re: Tutorial Group One
« Reply #2 on: August 29, 2012, 09:54:07 PM »
As above.
I am Othko, He who fell from the highest of places, Lord of That Bit Between High Places and Low Places Through Which One Falls In Transit Between them!

Lizard

• Moderator
• Posts: 267
• Karma: 3
Re: Tutorial Group One
« Reply #3 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?
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

• Guest
Re: Tutorial Group One
« Reply #4 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.

Lizard

• Moderator
• Posts: 267
• Karma: 3
Re: Tutorial Group One
« Reply #5 on: September 04, 2012, 10:51:07 PM »
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!
A coder, a hoodie, a coffee pot, a robot.

"A ship in port is safe, but that is not what ships are built for."

Othko97

• SotK Beta
• Patrikios
Voting Member
• Posts: 3520
• Karma: 9
Re: Tutorial Group One
« Reply #6 on: September 13, 2012, 07:19:19 AM »
I did for(i = 1; i <= 10; i++).
I am Othko, He who fell from the highest of places, Lord of That Bit Between High Places and Low Places Through Which One Falls In Transit Between them!