Foundations of Programming and Problem Solving Introduction.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

A Programmer's Introduction to Java - from a S/370 user (c) IDMS/SQL News
Credit hours: 4 Contact hours: 50 (30 Theory, 20 Lab) Prerequisite: TB143 Introduction to Personal Computers.
1 Copyright © 2005, Oracle. All rights reserved. Introducing the Java and Oracle Platforms.
01/04/2014 cis110 1 Introduction to computing and the Internet Dr. Lahcen Ouarbya 29 St-James, Room 6 Tel: Surgery.
Introduction to programming in java. Input and output to screen with Java program Structure of Java programs Statements Conditional statements.
01/04/2014 cis110 1 Introduction to computing and the Internet Dr. Lahcen Ouarbya 29 St-James, Room 6 Tel:
Programming for Beginners
Introduction to Programming Java Lab 1: My First Program 11 January JavaLab1.ppt Ping Brennan
11 January 2013Birkbeck College, U. London1 Introduction to Programming Lecturer: Steve Maybank Department of Computer Science and Information Systems.
Lecture 10 Flow of Control: Loops (Part 2) COMP1681 / SE15 Introduction to Programming.
1.A computer game is an example of A.system software; B.a compiler; C.application software; D.hardware; E.none of the above. 2.JVM stands for: A.Java Virtual.
Programming In C++ Spring Semester 2013 Programming In C++, Lecture 1
Introduction to Programming G51PRG University of Nottingham Revision 1
Chapter 8 Improving the User Interface
JAVA Programming Environment © Juhani Välimäki 2003.
Welcome to Java Programming. Why do I want to take this course? I want to major in EE/CSE. ECE122 is a requirement. Java is hot in Job market. It is useful.
1 Fall 2008ACS-1903 Chapter 1 Topics Java History Java Programs Why Program? Computer Systems: Hardware and Software Programming Languages What Is a Program.
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Programming Software Applications Week 1 Dr. Xiaohong Gao Trent Park – B107, ext. 2252
Welcome to CS-IT 114 Introduction to Java Spring 2006 Namita Singla Department of Computer Science University of Massachusetts Boston.
Introduction to Programming with Java, for Beginners Machine vs. Programming Language Intro to Java Edit-Compile-Run Program Process.
CSE 1301 J Lecture 2 Intro to Java Programming Richard Gesick.
Introduction to Java Tonga Institute of Higher Education.
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
CS110/CS119 Introduction to Computing (Java)
CS413: Java Programming language Applications Applets
FUNDAMENTALS OF PROGRAMMING SM1204 SEMESTER A 2012.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
An intro to programming. The purpose of writing a program is to solve a problem or take advantage of an opportunity Consists of multiple steps:  Understanding.
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.
First Java Program COMP 102 #2 2015T2 Xiaoying Sharon Gao Computer Science Victoria University of Wellington.
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 13: An Introduction to C++
© 2012 Pearson Education, Inc. All rights reserved. 1-1 Why Java? Needed program portability – Program written in a language that would run on various.
POS 406 Java Technology And Beginning Java Code
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Programming Concept Chapter I Introduction to Java Programming.
Clement Allen, PhD Florida A&M University SUMMER 2006.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
The Joy of Programming (also known as) Introduction to Object-Oriented Programming.
Jens Dalsgaard Nielsen Jan Dimon Bendtsen Dept. of Electronic Systems Basic Programming INS-basis GF, PDP and HST.
National Taiwan University Department of Computer Science and Information Engineering National Taiwan University Department of Computer Science and Information.
1 CS210 Intermediate Computing with Data Structures (Java) Saaid Baraty S-3-90.
EIE375 BlueJ: Getting Started Dr Lawrence Cheung.
Lecture.1: Getting Started With Java Jiang (Jen) ZHENG May 9 th, 2005.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
22-July-2002cse142-13B-Development © 2002 University of Washington1 Development Tools CSE 142, Summer 2002 Computer Programming 1
Pengantar OOP Class-Java. 2 Software Development Tools Using Sun Java SDK alone Source File(s) (.java) Programmer Compiler (javac) Class File(s) (.class)
CSc 201 Introduction to Java George Wells Room 007, Hamilton Building
© 2012 Pearson Education, Inc. All rights reserved types of Java programs Application – Stand-alone program (run without a web browser) – Relaxed.
Java FilesOops - Mistake Java lingoSyntax
CHAPTER 1 INTRODUCTION. CHAPTER GOALS To understand the activity of programming To learn about the architecture of computers To learn about machine code.
©2016 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. CSC 110 – INTRO TO COMPUTING - PROGRAMMING Overview of Programming.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Lecture1 Instructor: Amal Hussain ALshardy. Introduce students to the basics of writing software programs including variables, types, arrays, control.
ITP 109 Week 2 Trina Gregory Introduction to Java.
Execution ways of program References: www. en.wikipedia.org/wiki/Integrated_development_environment  You can execute or run a simple java program with.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Structured Programming and UML Introduction Session 2 LBSC 790 / INFM 718B Building the Human-Computer Interface.
Introduction to programming in java
CS210 Intermediate Computing with Data Structures (Java)
Lecture 1b- Introduction
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Lecture 1: Introduction to JAVA
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Foundations of Programming and Problem Solving Introduction

Outlines – Course overview – Teaching style – Assessment – Course information and support – About me – About you – What is a computer programming language? – Different programming languages – Machine code – Assembler – C – Java – PHP – Python – What is Java?

Course overview At the end of this course, you will be able to: Write, compile, debug, test and execute computer programs using Java Use variables to store a program's state Process numbers with arithmetic operators Use loops and logic to control a program Define methods which process data I Define classes and use objects(may be!)

Teaching style Lectures (2 hours) Labs (2 hours)

Assessment Programming assignment 1: 15% Programming assignment 2: 15% Programming assignment 3: 15% Presentation: 10% Problem solving assignment: 15% Exam 30%

Course information and support Office hours (Monday 11am-12pm) Course material: C Or learn.gold The problem solving part will be in learn.gold

About me Lahcen Ouarbya Room 6, 29 st-james Website: Tel:

About you Turn to the person next to you and ask each other the following questions: Have you used a computer program before? Which ones (name 2)? Which problem(s) did you solve with the program? What type of information did you work with? What is a computer program? Now tell the class what your partner said

What is a computer programming language? Again, in the same pairs, answer these questions: Name a computer programming language Have you used a computer programming language before? which ones? What have you used them for? What is a computer programming language? Now tell the class what your partner said

Different programming languages Machine code Assembler C Java PHP Python

Machine code

Assembler Add $r1, $r2, $r3 Sub $r3, $r4, $r5

C #include main(){ printf(Hello world!\\n); }

Java class Test { static void main() { System.out.println(Hello world); }

PHP <? echo ("Hello world!"); ?>

Phyton print("Hello world!")

Java An object orientated programming language A high level, human readable language A cross platform language 'Write once, run anywhere'

18 Software Development Tools We will use a combination of the Dr Java IDE and the Sun Java SDK Source File(s) (.java) Programmer Dr Java IDE Compiler (javac) Class File(s) (.class) Virtual Machine (java) EditBuildRun Program executes Parts of Sun Java SDK Graphical User Interface

19 Program Development Steps Edit and save source code Build source code to create program Run program and evaluate results Errors Classical Waterfall Development Steps

20 Styles of User Interface Graphical User Interface (GUI) – Computer displays a combination of text and graphical symbols offering options to the user – User manipulates mouse and uses keyboard to select from the offered options (hot keys) or to enter text – More common now (computer power is cheap) – Considered by most to be user friendly – Examples: M/S Windows/Office or MAC O/S

21 Software Development Tools Using Sun Java SDK alone Source File(s) (.java) Programmer Compiler (javac) Class File(s) (.class) Virtual Machine (java) Editor Program executes Parts of Sun Java SDK Command Line Interface

First Java Program HelloWorld.java public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World"); }