IntroComputerPL

IntroComputerPL - Problem Solving and Object-Oriented...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem Solving and Object-Oriented Programming CS 180 Sunil Prabhakar Department of Computer Science Purdue University
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Objectives This week we will study: n The notion of hardware and software n Problem solving with computers n Programming paradigms n Java portability n Fundamentals of Object-Oriented Programming ¡ classes and objects ¡ inheritance n The software lifecycle
Background image of page 2
This Course n We will study how computers can be used to solve certain problems ¡ Identify how to represent the program so that we can use computers to solve them ¡ Design a solution for the problem ¡ Convert the solution to a program (in Java) n We will learn several aspects that are common to most programming languages ¡ and also several details only specific to Java. 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Art of Programming n Computers are not inherently intelligent. ¡ They have a very small number of simple operations available ¡ They do not “understand” what they are doing -- they simply follow (like a mindless automaton) the instructions given to them. ¡ But, they are very fast, tireless, and perfectly obedient. n All the “magic” is in the program ¡ How to represent real world concepts in the bits of a program? ¡ How to use the simple instructions to achieve a high- level task such as playing chess. 4
Background image of page 4
Programming is . .. n Not unlike writing a symphony ¡ But with perfect players to perform it! n A highly creative exercise ¡ How to create complexity out of simplicity n Can be painful initially ¡ not unlike finger exercises n Highly rewarding and useful ¡ Internet, iTunes, Facebook, Amazon, EMR, space flight, climate modeling and prediction, simulations of phenomena, Hubble, Pacemakers, Computer games, telemedicine, Watson n Essential for many modern sciences 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Working with computers n Computers aren’t smart, but they are perfectly dumb : ¡ all errors are due to your (mis)instructions! 6
Background image of page 6
Programming Languages n Programming languages provide a means to communicate our instructions to a simpler “mind” -- we need to learn to break complex tasks into simpler sub-tasks. n We need to understand how to use only the operations available to achieve our goals n We need to understand how simple bits can be used to represent complex concepts such as videos, images, web pages, gene expression data, particle collider outputs, global climate models, . .. 7
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 Computer Systems n There are two main components of a computer: ¡ Hardware n The physical device including the IC chips, hard disks, displays, mice, etc. n Generally stuff that you can touch. ¡ Software n The information stored on the computer n Includes programs and data n Stored in binary (0s and 1s)
Background image of page 8
9 Computer Architecture (simplified) CPU “brains” Keyboard Monitor Memory Storage Devices Mouse Printer Network Devices More in CS250 : Computer Architecture.
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
10 Software n Everything is in binary -- 0s and 1s n Two types of information ¡ Instructions (programs) -- executed by the CPU ¡ Data -- manipulated by CPU n These are stored in memory
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2012 for the course CS 180 taught by Professor Staff during the Spring '08 term at Purdue.

Page1 / 46

IntroComputerPL - Problem Solving and Object-Oriented...

This preview shows document pages 1 - 11. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online