Problem Solving and Object-Oriented Programming
[Pages:46]Problem Solving and Object-Oriented Programming
CS 180 Sunil Prabhakar Department of Computer Science Purdue University
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
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
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 highlevel task such as playing chess.
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
Working with computers
n Computers aren't smart, but they are perfectly dumb :
? all errors are due to your (mis)instructions!
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
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)
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- javascript programming stanford university
- lab 4 object oriented programming
- program structure and object oriented programming
- object oriented analysis design tutorialspoint
- problem solving and object oriented programming
- what is object oriented programming 1991
- c programming tutorial part ii object oriented programming
- object oriented thinking part 2 computer science
- intermediate programming instructor greg shaw
- ct temple university
Related searches
- object oriented programming in matlab
- matlab object oriented programming pdf
- object oriented programming tutorial pdf
- object oriented programming book pdf
- object oriented programming c pdf
- object oriented programming 2 pdf
- object oriented programming pdf download
- object oriented programming c book
- object oriented programming java examples
- object oriented programming language pdf
- object oriented programming python pdf
- c object oriented programming examples