User Tools

Site Tools


spcs:summer2014:day_6

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
spcs:summer2014:day_6 [2014/06/30 14:56]
ffpaladin
spcs:summer2014:day_6 [2014/06/30 15:22] (current)
ffpaladin [Topics]
Line 1: Line 1:
 +====== SPCS - Day 6 ======
  
 +Afternoon Groups: (Rohan, Jon), (Jerry, Caelen), (Neel, Jonathan), (Tony, Rahul), (Akane, Olivia), (Vrinda, Nidhi), (Joyce, Sindhu), (Jannani, Christine, Maxine)
 +
 +===== Topics =====
 +
 +{{:​spcs:​winter2014:​screen_shot_2014-01-11_at_6.20.44_pm.png|}}
 +
 +  * Week 1 Recap
 +  * Object Oriented Programming
 +  * Final Projects
 +    * 3 types of prototypes
 +  * Brandon Tearse at 10:00
 +  * https://​www.destroyallsoftware.com/​talks/​wat
 +  * Sorting!
 +  * Spend last 30 min on HTML
 +    * http://​www.w3schools.com/​html/​html_intro.asp
 +    * http://​jsfiddle.net/​
 +
 +
 +===== Assignments =====
 +
 +Welcome to week 2! Remember, blogging is NOT meant to be optional. Even if you don't want to spend time on it, just make it very short and sweet (1 link, 1 photo, 1 sentence).
 +
 +Today we will do programming first.
 +
 +==== Part 1 - Mousey'​s Sort (Teams) ====
 +
 +Mousey still needs to sort his cheese. Help him by making an animation that simulates sorting. ​
 +
 +Edit: if this is too easy for you. Try animating another sort. Another challenge is to allow your sort to pause in the middle by pressing or clicking a button. How would you do this?
 +
 +
 +==== Part 2 - Blog Mousey'​s sort ====
 +
 +Describe the design, algorithm, and run-time (Big O) of your approach.
 +
 +
 +==== Part 3 - Blog Final Project Topics ====
 +
 +Please look at the list of topics. Pick three that you'd want to work on.
 +
 +Each of the three must state what the topic is about and why you want to work on it.
 +  * [[spcs:​summer2014:​final_projects|Final Projects]]
 +
 +Reminder: No skipping blogs, especially this one!
 +==== Part 4 - Cookbook JS fighting (Team or Individual) ====
 +
 +Go back to any of the previous Cookbook challenges, and work on them.
 +
 +Try to create your own art using the pixel web app.
 +
 +http://​www.piskelapp.com/​
 +
 +{{http://​piskel-imgstore-a.appspot.com/​img/​70db4370-0088-11e4-95f1-a15b8f75f054.gif}}
 +==== Part 5 - Blogs and Github ====
 +
 +Please take time to clean up your blogs and Github. We wanna all look pro :)
 +
 +Don't lose any of your work. Check your repos back in when you are done.
 +
 +
 +
 +
 +==== Feedback ====
 +
 +
 +https://​docs.google.com/​forms/​d/​1nNvgtxwBtGiDMfe_jjx1PH8MzwJlOR7jIAaEdLZ-sZI/​viewform
 +
 +==== Code ====
 +
 +
 +<code java>
 +
 +int cheesesticks [] = {21, 33, 44, 22 ,55 ,66 ,77, 33, 22, 11, 44, 33, 22, 11, 55 ,66, 5, 2, 100, 20};
 + 
 +int i = -1;
 +int j = 0;
 + 
 +int min;
 + 
 +void setup () {
 + 
 +  size (800,800);
 + 
 + 
 +  for (int k=0; k<20; k++)
 +    println(cheesesticks[i]);​
 + 
 +}
 + 
 +void draw () {
 +  ​
 + 
 +  background(0);​
 + 
 +  // only runs after j reaches 20  ​
 +  if ((j == 20) && (i < 19)) {
 + 
 +     i++;
 +     ​j=i+1;​
 +     min = cheesesticks[i];​
 +  }
 + 
 +  // runs as long as j is less than 20
 +  if (j < 20) {
 + 
 +    if (cheesesticks[j] < min){
 +      min = cheesesticks[j];​
 +      int temp = cheesesticks[i];​
 +      cheesesticks[i] = cheesesticks[j];​
 +      cheesesticks[j] = temp;
 +    }
 +    j++;
 +  }
 + 
 +  ​
 +  // Draws the state of the cheesesticks  ​
 +  fill (0,0,255);
 + 
 +  for (int l=0; l<20; l++)
 +  {
 +    rect(0, l*20, cheesesticks[l]*5,​ 10);
 +  }
 +  ​
 +  println("​poop"​);​
 +  ​
 +}
 +</​code>​
/soe/sherol/.html/teaching/data/pages/spcs/summer2014/day_6.txt · Last modified: 2014/06/30 15:22 by ffpaladin