Computer Programming 2 Java - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

Computer Programming 2 Java

Description:

Computer Programming 1 or permission of instructor. A web based email account (e.g. ... it blows away your whole leg.' - Bjarne Stroustrup, creator of C . 6 ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 21
Provided by: paulc1
Category:

less

Transcript and Presenter's Notes

Title: Computer Programming 2 Java


1
Computer Programming 2(Java)
  • Mr. Simon
  • Lowell High School
  • San Francisco, CA

2
An Introduction to the Java Programming Language
  • Course Requirements
  • Computer Programming 1 or permission of
    instructor
  • A web based email account (e.g. HotMail or Yahoo
    mail) that you can access from the school lab
  • A web site (e.g. googlepages) where you will
    publish your finished programs

3
What youll learn
  • How to program in Java Applets and Applications
  • Object Oriented Programming
  • A little HTML (just enough for your website)
  • How to maintain a website
  • Computer Graphics
  • Good Programming Style
  • A good foundation for studying computer science,
    engineering, math, physics, biology or economics
    in college

4
Java shares many things in common with C, which
is built on the language C. One of the most
successful programming languages of all time, C
was developed by Dennis Ritchie at Bell Labs in
1969. C was based on another Bell Labs language
called B which in turn was based on BCPL. There
was no A.
  • C was designed by programmers for programmers.
    It was meant to give the programmer the power of
    a low level language with the ease of use of a
    high level language.

Dennis Ritchie also created the UNIX operating
system with Ken Thompson.
5
Software has increased rapidly in size and
complexity. By the time XP was introduced,
Windows had grown to more than 50,000,000 lines
of code.
  • Programs had grown far too complex for one person
    to understand all the details. OOP (Object
    Oriented Programming) allowed teams of software
    engineers to manage complexity and see the big
    picture without getting overwhelmed in details.

C added OOP features to the C language.
"C makes it easy to shoot yourself in the
foot C makes it harder, but when you do, it
blows away your whole leg." - Bjarne
Stroustrup, creator of C
6
Distributed computing and client-server computing
is where a combination of large and small
computers are hooked together on a network, such
as the internet, so that each is used for what it
does best. Java, developed at Sun Microsystems,
worked particularly well for network and internet
programming. It also prevents programmers from
making some of the more common C mistakes.
C
C
Java
Java is a much smaller language that C. Though
it shares many things with C C it also
introduces new features.
7
Whats the same as C last semester
  • loops for, while and do-while
  • if and switch
  • functions (called methods in Java) and arguments
  • int, char, double
  • lt gt ! - /
  • main (Applications)

8
Whats new in Java this semester
  • OOP (Object Oriented Programming), inheritance
    and class
  • Platform independent
  • Java Virtual Machine
  • Your program runs inside the JVM program
  • Designed for GUIs and Graphics
  • Applets
  • Good for the internet and networking

9
Grading Policy
  • Each six week grade
  • 70 tests and quizzes
  • 20 programming assignments
  • 10 productive use of lab time
  • The Semester grade
  • Average of the 3 six week
  • grades and the final exam

10
Programming Assignments
  • Use free software JCreator (Mac Linux too!)
  • Available online or on CD
  • Its critical to your success that you spend
    adequate time programming and fully understand
    the assignments
  • Programming can be very time consumingclass time
    alone may not be enough
  • Send the code and url of your finished program to
    room334_at_gmail.com

11
Style
  • Building a working program is not enough
  • Other programmers need to read, understand and
    modify your program
  • Every class, book and job may use a slightly
    different style
  • Good style will significantly improve your grade

12
10 point Program Grading Scale
  • 1 pt Name, class, assignment in comments at top
  • 2 pts URL
  • 2 pts Correct Style
  • 5 pts Program Correctness
  • Always put your name, class and assignment on the
    subject line of the email message

13
Web and email
  • Send programs to room334_at_gmail.com
  • Send questions to mrsimon_at_earthling.net
  • Check mrsimon.net for assignments, grades,
    software and other information

14
Computer Accounts
  • Use your Lowell student account
  • Save your work to your network "Z" drive
  • If you check Tools Folder Options Offline
    files Synchronize All offline files before
    logging off your work will still be available
    even if the school network "goes down"

15
Getting your own website
  • There are several free providers of websites
  • I strongly recommend pages.google.com, but you
    are free to use any website you choose
  • To use pages.google.com, you need a gmail account
  • To get a gmail account you need either
  • A mobile phone or
  • someone who has a gmail account to "invite" you

16
Getting your own website
  • Other free providers of websites
  • http//www.roachhost.com/
  • http//www.brinkster.com
  • http//geocities.yahoo.com/
  • http//www.netfirms.com
  • http//www.50megs.com
  • http//www.angelfire.lycos.com/
  • http//www.freewebs.com
  • http//www.100megs.com
  • Know of any others?

17
Creating your homepage
  • Your homepage is the main page on your website
  • Here you will put links to all your assignments
    for the course
  • You should also identify the page with your first
    name and "Computer Programming 2"
  • I don't recommend high school students to put
    their full or last name on the internet

18
Creating your homepage
  • Once you log into your googlepages account, you
    can edit your homepage by clicking on the link
    under "Page Name"

19
Creating your homepage
  • Now, give your page an appropriate title

20
Assignment 0
  • Sign up for a googlepages account
  • Send an email to room334_at_gmail.com with the
    following information
  • Your name, reg, class, mods and computer
  • The URL of your website
  • Your parents/guardians name, home phone and email
  • Your parents work/daytime phone
  • Secret Code (4 digits/characters, examples AOK1,
    1776, KT85)
  • Previous computer classes taken and grades
    received.
  • Log Off when youre done
Write a Comment
User Comments (0)
About PowerShow.com