Week 14/15

I have posted a writing assignment: Problem 2-0: Me, Myself, and UI, to be due on January 8, 2016. You are to research and compare different user interface designs, and predict the future of user interfaces. Be creative! The over length should be about 600 words.

Please submit this as either a shared google doc (share with me at margarettanzosh@nestmk12.net) or create a word document and save it in your dropbox folder.

Our second quiz, Quiz-1, will be coming up on Tuesday, December 22.

The quiz will contain no more than 10 questions to be chosen from questions like these. Sample questions are here. Quiz 1 Sample Quesitons

Answers to sample questions are here. Quiz 1 Sample Question Answers

Possible topics include:

  • Strings and Arrays
  • Writing a for loop to iterate through a string
  • Writing code to create an array of ints, storing values and printing them out.
  • The difference between while and do while loops.
  • Segmentation faults: what are they and what can cause them.

Study resources:
CS50 Study Pages for

CS50 Reference

Segmentation Fault
A common run-time error for C programs is a “segmentation violation” or “segmentation fault.” When you run your program and the system reports a “segmentation violation,” it means your program has attempted to access an area of memory that it is not allowed to access. It often happens when you try to access an element of an array that does not exist. Such as referencing argv[1] before without first checking that the user has input a command line argument.

Here is a great video on arrays.

And here is a great video on command line arguments.

Also for those that are working ahead, problem 3-1 is now available.

Advertisements

Week 13

Hackathons!

Congratulations to our Agile Youth Challenge Hackathon winners: Jacob Sela, Greggory Antoine, Alan Huang and Andriy Repik! They created an application named “Over Coffee” at Sunday’s hackathon, and coded until the very last minute! The judges were so impressed they awarded our team first prize!

There will be another AYC Hackathon coming up on March 13th, so put it on  your calendar now if you are interested.

Meanwhile, the Harvard CS50 AP Hackathon, the first high school CS50 hackathon ever, is coming up on Saturday, February 6, from 10:00am to 3:00pm at the Browning School, 52 E 62nd Street. Harvard needs confirmation this week on who is attending in order to order food, snacks and t-shirts. You must fill out the confirmation form this week if you plan to come. This is the event where Professor David Malan and others from Harvard will be attending, and it should be really spectacular!

And on this Saturday, December 12, All Star Code will be hosting All Star Hacks. 

Meanwhile back to our work. Below is a video on functions that further explains the concept that we began to discuss in class. While you are not required to build your own functions for unit 2 problems, it would be a great idea to begin to experiment with coding functions as you work on your unit 2 problems.

Finally you can find the code from our recent startups here.