College Confidential
» CC HOME » FORUM HOME

  College Confidential > College Admissions and Search > SAT and ACT Tests & Test Preparation > AP Tests Preparation > Mathematics & Computer Science
New User

Welcome to College Confidential!
The leading college-bound community on the web
Join for FREE now, and start talking with other members, weighing in on community polls, and more.

Also, by registering and logging in you'll see fewer ads and pesky welcome messages (like this one)!
Discussion Menu
»Discussion Home
»Help & Rules
»Latest Posts
»NEW! CampusVibe™
»Stats Profiles
Top Forums
»College Chances
»College Search
»College Admissions
»Financial Aid
»SAT/ACT
»Parents
»Colleges
»Ivy League
Main CC Site
»College Confidential
»College Search
»College Admissions
»Paying for College
Sponsors
SuperMatch - The Future of College Search!
CampusVibe - Almost As Good As A Campus Visit!
Reply
 
Thread Tools
Old 08-09-2011, 04:22 AM   #61
Junior Member
 
Join Date: Jan 2011
Posts: 104
BK, Khan Academy is the one that has Python. If you can, you should do the Karel assignments, they're super fun and teaches you more about programming than Java.

and I've just finished the StoneMasonKarel code. I'd love feedback, corrections, improvements, or anything!

/*
* File: StoneMasonKarel.java
* --------------------------
* The StoneMasonKarel subclass fully repairs damaged pillars in Karel's world. It does not * place more than one stone on any corner.
*/

import stanford.karel.*;



public class StoneMasonKarel extends SuperKarel {

public void run() {
turnLeft();
moveToTop();
turnRight();
while (frontIsClear()) {
buildPillar();
turnRight();
moveToNextPillar();
}
buildPillar();

}
/* Pre-condition: Karel is at the bottom of a pillar facing north.
* Post-condition: Karel is at the top of a pillar facing north.
*/
private void moveToTop() {
while (frontIsClear()){
move();
}
}


/* Pre-condition: Karel is at the top of a pillar facing north.
* Post-condition: Karel has returned to the top of the pillar, replacing all missing stones, and facing north.
*/
private void buildPillar() {
turnRight();
while (frontIsClear()) {
if (noBeepersPresent()){
putBeeper();
move();
} else {
move();
}
}
turnAround();
if (noBeepersPresent()){
putBeeper();
}
moveToTop();
}


/* Pre-condition: Karel is at the top of a pillar facing East.
* Post-condition: Karel is at the top of the next pillar facing East.
*/
private void moveToNextPillar() {
move();
while (leftIsClear()){
move();
}
}

}
aboveblues is offline   Reply   
Old 08-10-2011, 11:24 PM   #62
Junior Member
 
Join Date: Aug 2011
Posts: 188
is it too late for me to start this..? Will I catch up?
MegaFund is offline   Reply   
Old 08-11-2011, 09:02 PM   #63
Junior Member
 
Join Date: Mar 2011
Location: PA
Posts: 280
School hasn't even started, you have plenty of time
pentupenguin is offline   Reply   
Old 08-11-2011, 09:25 PM   #64
Junior Member
 
Join Date: Aug 2011
Posts: 188
Yeah but I'll likely do better if doing it with a group, maybe their school has begun.
MegaFund is offline   Reply   
Old 08-11-2011, 09:46 PM   #65
New Member
 
Join Date: Aug 2011
Posts: 14
That's great you are doing this together. My son did the Stanford class himself last semester. His school doesn't offer programming classes, so he was able to get a semester of credit for intro to java. Have fun!
DRDM37 is offline   Reply   
Old 08-12-2011, 05:50 PM   #66
Junior Member
 
Join Date: Jan 2011
Posts: 104
My school hasn't started. Just watch the first 3 stanford lectures asap and buy barron's, I can't imagine that anyone in this thread is very far yet.
aboveblues is offline   Reply   
Old 08-12-2011, 10:19 PM   #67
Junior Member
 
Join Date: May 2011
Posts: 61
My online AP Comp Sci for Georgia Virtual Schools started Monday and now I'm a couple weeks ahead. It really moves too slowly. Sounds like I'll need to work through Barron's or Stanford lectures in the meantime.
MoldyBrick is offline   Reply   
Old 08-13-2011, 02:15 PM   #68
Junior Member
 
Join Date: Mar 2011
Location: PA
Posts: 280
Can someone pleas help me set up Eclipse so I can do Karel? I downloaded it and whenever I try to open it I get a message saying "The eclipse executable launcher was unable to locate its companion library". I run Windows. Does anyone have any step by step instructions?
pentupenguin is offline   Reply   
Old 08-13-2011, 08:37 PM   #69
Junior Member
 
Join Date: May 2010
Posts: 100
to all having trouble with Karel....you need the STANFORD version of Eclipse:

check the official CS106A website to download that: CS106A Programming Methodology

To be honest though, Karel is a great intro fro loops, etc....but I don't like it
Starting lecture 4 right now. Good luck everyone!
LilBallerx8 is offline   Reply   
Old 08-13-2011, 10:14 PM   #70
Junior Member
 
Join Date: Aug 2011
Posts: 188
I'm suppose to watch Programming Methodology
MegaFund is offline   Reply   
Old 08-13-2011, 10:21 PM   #71
Junior Member
 
Join Date: Aug 2011
Posts: 188
^^that was a question btw
MegaFund is offline   Reply   
Old 08-13-2011, 10:26 PM   #72
Junior Member
 
Join Date: Jul 2011
Posts: 133
I don't really have time to read through this thread right now, but I would like to self study comp. sci. with you guys. If someone could post links to the Stanford lectures and the programs I need, I would love you forever :P
iwaitz4u is offline   Reply   
Old 08-13-2011, 10:29 PM   #73
Junior Member
 
Join Date: Aug 2011
Posts: 188
I think(but im not 100% sure) we're suppose to watch the Programming Methodology Lectures. Im on Lecture one and the teacher is awesome, wish my crappy public school had teachers like him. :-P Lecture 1 | Programming Methodology (Stanford) - YouTube
MegaFund is offline   Reply   
Old 08-13-2011, 10:39 PM   #74
Junior Member
 
Join Date: Aug 2011
Posts: 188
do you guys recommend I do the assignments? I'm taking notes but don't think it's enough
MegaFund is offline   Reply   
Old 08-14-2011, 01:02 AM   #75
Junior Member
 
Join Date: May 2010
Posts: 100
eeek, I'm on lecture 4 and they've started talking a little about graphics....and there is nothing on graphics on the test itself. What to do....?
LilBallerx8 is offline   Reply   
Reply

Bookmarks

Tags
computer science, self-study

Thread Tools



All times are GMT -4. The time now is 11:10 AM.




Copyright 2001-2011, Hobsons, Inc., All Rights Reserved