Designing Solutions Through Programming block 1 Lesson Notes - August 28

From Computer Science Wiki

Class plan.png What are we going to learn today?[edit]

Hello Class!

Today in class we will:

  • review introductions
  • confirm if many of you have jetbrains IDE (click here for download link for phpstorm) email
    • IF more than 90% of the class has the verification email THEN we will setup phpstorm
  • we will review our HTML
    • we will review how to up sublime and google chrome side by side
    • we will review how to view source in Google chrome
<!DOCTYPE html>
<html>
<head>
<style>
div {
    background-color: lightgrey;
    width: 300px;
    border: 25px solid green;
    padding: 25px;
    margin: 25px;
}
</style>
</head>
<body>

<h2>Demonstrating the Box Model</h2>

<p>The CSS box model is essentially a box that wraps around every HTML element. It consists of: borders, padding, margins, and the actual content.</p>

<div>This text is the actual content of the box. We have added a 25px padding, 25px margin and a 25px green border. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>

</body>
</html>
  • we will create our first solution (see specification, below)


Students who are little less comfortable coding[edit]

Mr. MacKenty is selling an old TV. Here is the text he wants included on an HTML page:

Samsung TV for sale. About 7 years old. Model LE40A551.  Link to documentation: http://www.samsung.com/pl/support/model/LE40A551P2RXXC

Current street price: 590 PLN (http://allegro.pl/tv-samsung-le40a551p2r-40-led-full-hd-usb-hdmi-i6912239584.html). 

We are selling for 450 PLN. 

We are selling TV, stand, remote control (pilot) and power cable. We are not including HDMI cables or video cables. We have used this TV for years and have been happy with the quality. Please contact Bill if interested at 794 333 673 or bmackenty@aswarsaw.org.

Thank you!

<img src="https://static.promoceny.pl/foto/vyrobky/011250/11132.jpg" />

Please:

  1. make an html document from this text
  2. the links should say "click here to see the link"
  3. the text should be spaced apart
  4. the images should be visible


  1. The final product should make people want to buy this TV. Feel free to be creative :-)

Homework.png What is our homework?[edit]

If you haven't finished your solution, please try your best to have it finished by our next class.

Target.png How am I being assessed today?[edit]

I will assess you formatively today, and make a professional judgement to what extent you understand our learning material. I will use observation, your written work, answers to questions, and contribution to class discussions as data to make my decisions. I normally record my observations in a "evidence of learning" spreadsheet, which I will happily share with you privately if you so wish. I usually need a day or two notice.

Ourstandards.png Standards we are covering today[edit]

Computer1.png As a computer scientist, you have:[edit]

  • Confidence in dealing with complexity
  • Persistence in working with difficult problems
  • Tolerance for ambiguity
  • The ability to deal with open-ended problems
  • The ability to communicate and work with others to achieve a common goal or solution

Credit.png Credits[edit]