1 / 22

Foundations of Programming and Problem Solving

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

Download Presentation

Foundations of Programming and Problem Solving

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Foundations of Programming and Problem Solving Introduction

  2. 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?

  3. 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!)

  4. Teaching style • Lectures (2 hours) • Labs (2 hours)

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

  6. Course information and support • Office hours (Monday 11am-12pm) • Course material: • http://www.doc.gold.ac.uk/~mas01lo/course/2012-2013/foundation/lectures.html • Or learn.gold • The problem solving part will be in learn.gold

  7. About me • Lahcen Ouarbya • Room 6, 29 st-james • Email: l.ouarbya@gold.ac.uk • Website: www.doc.gold.ac.uk/~mas01lo • Tel: 020 7717 2263

  8. 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

  9. 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

  10. Different programming languages • Machine code • Assembler • C • Java • PHP • Python

  11. Machine code

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

  13. C #include <stdio.h> main(){ printf(Hello world!\\n); }

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

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

  16. Phyton print("Hello world!")

  17. 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 Graphical User Interface Dr Java IDE Edit Build Run Programmer Source File(s) (.java) Class File(s) (.class) Virtual Machine (java) Compiler (javac) Program executes Parts of Sun Java SDK

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

  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 Command Line Interface Editor Programmer Source File(s) (.java) Class File(s) (.class) Virtual Machine (java) Compiler (javac) Program executes Parts of Sun Java SDK

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

More Related