415.111 SC Introduction to Programming Lecture 1: 5 th May 2003.

Slides:



Advertisements
Similar presentations
Foundations of Programming and Problem Solving Introduction.
Advertisements

IT Services Computer Training. Introduction Different Ways of Learning Training Materials Training Sessions Training Topics.
Lecture 2 Internet Computing Using Java Theophano Mitsa UMASS-Dartmouth.
Introducing Java CSC1401. Course Goals Teaching programming concepts In a “real” language.
Chapter 1 - VB 2008 by Schneider1 Chapter 1 - An Introduction to Computers and Problem Solving 1.1 An Introduction to Computers 1.2 Windows, Folders, and.
Creating a Basic PowerPoint Presentation by Dr. Amos Olagunju.
Introducing Microsoft PowerPoint 2010 John Matthews (ITS)
Introduction to CS170. CS170 has multiple sections Each section has its own class websites URLs for different sections: Section 000:
How to Create a Java program CS115 Fall George Koutsogiannakis.
Lecturer: Fintan Costello Welcome to Hdip 001 Introduction to Programming.
1 Lab Session-I CSIT120 Spring2001 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 continues (Session.
Applets. An applet is a Panel that allows interaction with a Java program A applet is typically embedded in a Web page and can be run from a browser You.
Course Introduction and Getting Started with C 1 USF - COP C for Engineers Summer 2008.
An Introduction to Computer Programming Anna Bretscher
Getting Started with Microsoft PowerPoint Vivien Hall (CCS) Acknowledgements – Ali Parvin (CCS)
CPG 453 Course Outline Previous Text:  Microsoft Office XP – Illustrated Introductory (Enhanced Edition) by Thomson Course Technology (2003)  This.
ITP © Ron Poet Lecture 1 1 IT Programming Introduction.
WELCOME PARENTS! Honors Computer Programming Ms. L. Dutchen.
CPS 2231 Computer Organization and Programming Instructor: Tian (Tina) Tian.
Introduction to VB.NET Tonga Institute of Higher Education.
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
CSCI 273: Processing An Introduction. Programming Languages –An abstract "human understandable" language for telling the computer what to do –The abstract.
Foundation Programming Introduction. Aims This course aims to give students a basic understanding of computer programming. On completing this course students.
COMP 111 Programming Languages 1 First Day. Course COMP111 Dr. Abdul-Hameed Assawadi Office: Room AS15 – No. 2 Tel: Ext. ??
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
CS 106 Introduction to Computer Science I 01 / 25 / 2010 Instructor: Michael Eckmann.
©Xiaoying Gao, Peter Andreae First Java Program COMP 102 #2 2014T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Media Computing Instructor Byung Kim Olsen 231 Office hours – MWF 9:00-10:00 AM or by appointment.
Welcome to IIT and cs115!.
First Java Program COMP 102 #2 2015T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
ICS 102 Computer Programming University of Hail College of Computer Science & Engineering Computer Science and Software Engineering Department.
Microsoft Word Lesson 1. The Undo Button  Don’t worry about making a mistake. If you make a mistake, go up and hit Edit and then hit Undo, Or you can.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Programming Concept Chapter I Introduction to Java Programming.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CSCI Processing CSCI Introduction to Algorithm Design An Introduction.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 CS4610/7610: Introduction to Computer Graphics.
A guide to creating a power point display Essentials Ctl M =New Slide: a new slide can be inserted. It is placed after the slide that you are viewing.
Comments in Java. When you create a New Project in NetBeans, you'll notice that some text is greyed out, with lots of slashes and asterisks:
King Saud UniversityCSC112 - First Semester CSC 112 Java Programming I Introduction.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Drawing rectangles and ovals in the Applet window Displaying Text in the Java Console Window Demo of the HelloAgain program Arithmetic expressions Examples.
CSC 157 (Blum)1 Hello World. CSC 157 (Blum)2 Start/Programs/Microsoft Visual Studio.NET 2003/Microsoft Visual Studio.NET 2003.
AN INTRODUCTION TO JAVA LANGUAGE CT Credit Hours : (3 Lecture, 2 Lab)
Intro to CS ACO 101 Lab Rat. Academic Integrity What does that mean in programming? Log into Blackboard and take the test titled “Applied Computing Course.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
CPSC 203 Introduction to Computers T43, T46 & T68 TA: Jie (Jeff) Gao.
(c)2006 E.S.Boese All Rights Reserved.1 Drawing Shapes and Text Chapter 2 – Lecture Slides.
Why should I run Disk Cleanup Remove temporary Internet files Remove temporary Internet files Delete downloaded program files, such as Microsoft ActiveX.
Computer Science I Programming in Java (programming using Processing IN Java, using IntelliJ IDE) Classwork/Homework: copy your Processing projects over.
King Saud University1 CSC 112 Java Programming I Introduction.
JRN 302: Introduction to Graphics and Visual Communication -Intro. to InDesign Thursday,
Microsoft Expression Web 3 Chapter 6 Adding Interactivity.
CSC207 Fall 2016.
An Introduction to Computers and Visual Basic
Chapter 1 - An Introduction to Computers and Problem Solving
An Introduction to Computers and Visual Basic
Welcome to CS 1010! Algorithmic Problem Solving.
Introduction to Algorithm Design
Welcome to CS 1301! Principles of Programming I.
How to Run a Java Program
An Introduction to Computers and Visual Basic
An Introduction to Java Language
Zorah Fung University of Washington, Spring 2015
Zorah Fung University of Washington, Winter 2016
Ministry of Education Capacity Development Center
Presentation transcript:

SC Introduction to Programming Lecture 1: 5 th May 2003

Lecturer: Dr Jennifer Lennon –Room 565 – –Office hours: Mon (2-3), Wed (2-3), Course Information

Labs 15% Test 20% Final Exam 65% Lectures Final exam HomeworkFinal exam Labwork Final exam Course composition

. Text –The Explorer’s Guide to Programming (to be collected (FREE OF CHARGE) from the Resource Centre) Lecture notes (for revision) Labs – as usual Course Information contd

What is programming? What is Java? How do we run a Java program? What is a program? Introduction to Applets: –The coordinate system –Drawing text in the Applet window This lecture: Outline

Getting the computer to follow our instructions E.g. Alice as well as all the Microsoft Office applications are programs What is programming?

To better understand how computers work To make more intelligent guesses when they don’t work In industry: –80% work can be done by applications –20% must be done by programmers Why Learn programming?

Java Why??? –It is a good teaching language –This is the Computer Science dept. –Follows through to COMPSCI.101 –It is a language for professionals Is programming an art or a science? Both What language will we use?

Attend all lectures Read every word of the Explorer’s Guide Do every exercise in the Explorer’s Guide Attend all tutorials Complete every assignment You only learn by writing programs yourself For Success in Learning Java

What is a program? It is a series of statements. For example the statement: g.drawString( " Hello Computer ", 50, 100); Displays Hello Computer on the computer screen. What happens if we make a mistake? The computer displays an error message, or it does something unexpected.

 Open the 111 Course folder  Open the Explorer’s Guide folder  Open the Sample programs folder  Copy the Chapter 1-progs to your G:drive.  Open the program of you want to run Running a program

Running a program continued: Double click on the FirstHello.java file

Running a program contd  Now choose Run Java Applet from the Tools menu After a short wait the following window appears:

The Program p9

–The following line tells the Java system that we are going to draw in the Applet window: –public void paint( Graphics g ) –In Java terminology we say that we are going to "paint" in the window. Painting in the Applet Window

The Applet Window: a grid Pixels :

g.drawString( "Hello World!", 30, 30 ); –This tells the system that we are going to draw the string "Hello World!" at position (30, 30) in the Applet window. The g.drawString() Statement

Co-ordinates p10

Positioning the text p12 (30,30) g.drawString("Zing!", 30, 30 );

g.setFont() Changing the font and font size p12 // * * * * * * * * * * * * * * * * * * * * * * * // Hello Computer program revisited g.setFont( new Font ( "TimesRoman", Font.BOLD, 18 )); g.drawString( "Hello Computer!", 30, 30 ); // * * * * * * * * * * * * * * * * * * * * * * *