Day 1 Homework Assignment

Download this episode

Download Video


Congratulations! You've learned the basics. Now it’s time to flex your newfound knowledge, borrow from the concepts you’ve learned thus far, and write a simple application. You'll save the world by allowing a mobile user to type in a special sequence of numbers every 108 minutes. If you get stuck, watch just enough of the next video to get un-stuck.

Download the source code in c#

Download the source code in VB.Net



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image

      nice HW, was a good brush up of things done before....could have been little tougher though Smiley

      Thanks Bob!!

    • User profile image

      Thanks for the homework!  Should have made it a bit harder though.  Took me 2 minutes.  Probably because you are awesome at explaining everything earlier :)  Cheers.

    • User profile image

      It took me a while to complete this homework assignment because time went forward and back a few times.

    • User profile image
      Joseph Clover

      Here is my code, any good? :)
      namespace Hello_World{  
       public partial class MyFirstXamlPage : PhoneApplicationPage    { 
             public MyFirstXamlPage()        { 
              private void button1_Click(object sender, RoutedEventArgs e)        {
                  if (checkCode(secretCode.Text))
                      setText(outputText, "YOU SAVED THE WORLD");
                       setText(outputText, "YOU KILLED THE WORLD");      
              private Boolean checkCode(string theCode)        { 
                 if (theCode == "42 333 495 4493 293")            { 
                     return true;          
                  }            else            { 
                     return false;          
              private void setText(TextBlock textBlock, string textInput)        {
                  textBlock.Text = textInput;

    • User profile image
      Joseph Clover

      @Joseph Clover: sorry about that, formatting seemed to have failed. Here is a clean version :)

    • User profile image
      Martin N.

      Thanks Bob! Great lessons!

    • User profile image
      Brett P.

      I love the LOST reference xD

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.