11/18/24 – The Internet is for Everyone: Challenge #1 (Affordability)

Summary: Today we discussed “The Internet is for Everyone: Challenge #1“.

Spreadsheets Data (Mobile and Fixed)

Mobile Fixed
cable.com.uk broadbandsearch.net
broadbandsearch.net todaytesting.com
worldpopulationreview.com cable.co.uk
statista.com

Homework:

Programming Challenges 2024-2025

When completing your code challenges keep in mind the four characteristics of quality code…

  1. Functional – Accomplishes it’s task every time.
  2. Readable – Easy for a human to read and edit
  3. Efficient – Executes quickly without unnecessary steps.
  4. Short – Uses the fewest lines of code.

Or put another way…

  1. Does it work? Your code should meet all of the requirements and work in every situation.
  2.  Is it understandable? Your code should be easy for a human to read and understand.
  3. Is it fast? You code should execute and finish as quickly as possible.
  4. Is it short? Your code should be as few line of code as possible.

Submit Your Programming Challenges here. Please make sure your challenge meets all of the requirements before submitting. Also please make sure your app is titled “Programming Challenge #__” to make it extra clear which challenge you have completed.

  1. Four Function Calculator App – Create a basic four function calculator. Remix this template to start. Watch a video example to see how it should work here.
  2. Four Function Calculator App (Final Draft) – Fine tune your calculator to handle these weird errors and other small things…
    • What if the user puts a non-number into one of the boxes?
      • Print “Error: Please only enter numbers”
    • Do not allow users to edit the big output text area
    • What if they divide by zero?
      • Print “Error: Cannot divide by zero”
    • What if the output is scientific notation
      • If the output is scientific notation, then print “Error: Answer is too long”
  3. Robot Maze Challenge
  4. getSquarePerimeter(area) – Given the area of a square return the perimeter of the square.
  5. Write a function getSmallestNumber(n1,n2,n3,n4) that returns a numeric value that represents the smallest number given four numbers. Please do not use the built in Math.min function
  6. Fix the code to make a “Match Object to Color” app. Remix template here.

11/15/24 – Intro to Variables

Summary: Today we took some notes and practiced with variables…

  1. var x; //Create a variable named x
  2. x=5;   //Assign the value 5 to the variable
  3. x=x+2  //Add two to the variable. The variable x now holds the value 7
  4. x=x+" Up" //Append (aka Concatenate) the string " Up" to the variable.
  5. console.log(x); //Will print "7 Up" to the console.

Homework Unit 4 Lesson 2 Bubbles 1-7 (due Monday), Turtle Challenge #15 (due Monday)