Programming Fundamentals: Getting Started
Programming Fundamentals: Getting Started
Programming Fundamentals: Getting Started
Getting Started
Chapter 1
Copyright
• Assignments (40%)
– Two Assignments (20% each)
• Practical Attendance (15%)
– Being there is not enough. Must be doing
something
– Practical supervisor will mark you off when they
can see you are attempting (not necessarily
succeeding)
• Exam (45%)
Academic Misconduct
• Very simple
• Anything you’re going to get marks for should
not be seen by another student.
• Penalties apply
• Just because Turn It In doesn’t find plagiarism
doesn’t mean I won’t. I compare your source
code to all other students, past and current.
– Renaming variables won’t help you…
Slides
• These slides are based on the text and they
expect you have read the text before you see
them.
• Hidden slides are important
• My (James’) thoughts and comments will be
interspersed in green
• While you’re learning the basics, I will offer side-
by-side Python -> Java translations to help you
make connections
Introduction To Java
• Most people are familiar with Java as a language for
Internet applications
– This may no longer be accurate. E.g. Android and IoT devices
rely heavily on Java. Web Java is ‘dead’
• We will study Java as a general purpose programming
language
– The syntax of expressions and assignments will be similar to
that of other high-level languages
– Details concerning the handling of strings and console output
will probably be new
– If coming from Python, you’ll notice a lot of boilerplate code
that you haven’t needed in the past
Copyright © 2010 Pearson Addison-Wesley.
1-8
All rights reserved.
Origins of the Java Language
• Created by Sun Microsystems team led by James
Gosling (1991)
• Originally designed for programming home
appliances
– Difficult task because appliances are controlled by a wide
variety of computer processors
– Team developed a two-step translation process to simplify
the task of compiler writing for each class of appliances
Class
Java – HelloWorld.java
Main method
Sample Java Application
Program
System.out.println("This is an argument");