Comilers and Interpreters

Retrieved from http://en.wikibooks.org/wiki/Introduction_to_Programming_Languages/Interpreted_Programs
A PlayList project will be based on Three Classes
The Artist class will store core information about an artist
The Song class will store basic information about a music song
The PlayList class will manage lists of songs and artists
1 2 |
private String artistName ; private Song[] songs ; - an array storing the songs of this artist |
Methods
1 2 3 4 5 |
private int indexOf(String songName) // returns index position of parameter in the array public void addSong(Song song) public void removeSong(Song song) public void removeSongByName(String songName) public Song[] getSongs() //returns songs array public String getName() // returns artistName |
Constructor(s):
1 2 3 |
public Song(String songName, Artist artist){ //missing code } |
Instance Variables
1 2 3 |
private Artist artist ; public String songName ; public long date //(date added to list) |
example of how to get current milliseconds as a long
Method
1 |
public Artist getArtist() |
Mutator Methods
Read the following articles and answer handout questions
Steve Jobs article : http://www.forbes.com/sites/jackzenger/2013/08/22/the-big-lesson-about-leadership-from-steve-jobs/
Mark Zuckerberg #1 http://www.inc.com/ekaterina-walter/as-zuckerberg-turns-30-leadership-lessons.html
Mark Zuckerberg #2 [article taken down 🙂 ]
You will be responsible for understanding the core concepts behind all the formats/file types (listed in chapter 3 of the book for representing for various types of data (text, images, video), the pros and cons of different formats and when it is appropriate to use different formats. For instance, jpg’s are meant to realistically represent photographs and use color averaging, while GIF’s have a max of 256 colors and therefore have much smaller file sizes than jpegs ; the latter are not a good choice for representing photographs but rather for cartoons or line art. Both of these are Raster not vector shapes.
This page is dedicated to the generic information level topics for the IB computer science curriculum. For our school it coincides with Chapter 2 of the Computer Science Illuminated text book.
Resources:
This page correlates with Unit 3 in our book and focuses on circuits, gates and chips
Good websites on this unit’s topics
A Great Discussion at Quora about the question “What do low level programmers know that high level ones don’t? This discussion helps explain reasons to better understand how hardware and OS concerns do affect programmers.
Logic Gates
Circuits
CPU Chapter 5
ALU ( The arithmetic logic unit) Chapter 5, p. 128
Computing Components
Stored-Program Concepts
Embedded Systems
Parallel Architectures
self paced, and run by Cay Horstman a well known programming educator who, among other things, has worked with parts of the college board’s AP exam
Syllabus
Lesson 1: Introduction to Computers, Programming Languages, Algorithms, and the Java Programming Environment
Lesson 2: Introduction to Classes and Objects
Lesson 3: Graphics
Lesson 4: Fundamental Data Types
Lesson 5: Decisions
Lesson 6: Iterations
Lesson 7: Arrays, ArrayLists and Simple Array Algorithms
Lesson 8: Methods (Parameter Passing, Instance vs. Static Methods)
Lesson 9
Syllabus
Week 1: Introduction to computing systems from hardware, software and problem solving aspects
Week 2: Basic data types, variables, assignment statements and expressions
Week 3: Objects, classes and methods; scope rules, Java documentation
Week 4: Boolean expressions, control structures
Week 5: Loops
Week 6: Arrays and multidimensional arrays
Week 7: Character string and file I/O
Week 8: Recursion
Week 9: Abstract data type
Week 10: Simple event-driven programming and wrap up
: Inheritance
Web programming
Debunking the concept of the lone “genius programmer” coding alone in a cave, a Google IO talk
Installing Vim:
Overview of Vim, with some examples of what it can do for you
Some good Youtube vids
Plugins
Beyond the basics
Helpful Shortcut