SmithLogo

CSC 103

How Computers Work

Smith Computer Science



Lecture Notes 12: High-Level Language


Outline

This class we'll discuss:







Assembly Recap





Try the SIMULATOR

Running A program

Steps:
  1. Click and open this File: assemblyProgram.txt
  2. Select the text, Right-click on it and select "copy"
  3. Paste it into the "Program" Tab of the simulator
  4. Place the cursor at the end of the last line and press "return"
  5. Switch to the "Computer" Tab
  6. (If it doesn't update press "Reset")












































































































EXAMPLE: An HTML program

















































Running HTML

Steps:
  1. Download This File: page1.html
  2. Right-click on it and select "Open"
  3. It should open with your default browser
  4. Interact with it!




Now: Who wants to learn some Python?

Steps:
  1. Open the Python Tutor Here
  2. Write the following line of text:
    print("Hello World!") 
    

  3. Now press "Visualize Execution"
  4. Now press "Next" and look at the output console!


Now let's modify this and draw some ASCII ART (simple computer printer characters that make art)

Steps:
  1. Add multiple print statements one after the other (we'll need 3)
  2. The following image can be "drawn" by printing 3 lines of text using special characters and spaces:



  3. Try it out!




Now something fancier! Open the following Python Tutor program and run it: Here




Before next class (Tuesday 10/19)



[Due for everyone]
[Optional]
The short story!




1-Minute Debrief

Please fill this out before leaving:

Enter the password to proceed:






1-Minute Debrief