Presentation is loading. Please wait.

Presentation is loading. Please wait.

©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.

Similar presentations


Presentation on theme: "©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I."— Presentation transcript:

1 ©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I

2 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. What is Computer Science? *What do you think it is? *Why is it useful?

3 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computer Science topics Software Engineering Algorithms Data Structures Operating Systems Computer Architecture Programming Languages Theory of Computation Computer Graphics Networks and security Databases

4 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. What is this course about? object-oriented concepts objects and classes interfaces and inheritance polymorphism problem solving program design and implementation graphics and user interfaces the Java programming language

5 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Course Objectives After you have completed this course you should be able to design object-oriented solutions to programming problems implement working programs with good coding and documentation style explain concepts such as algorithms, encapsulation, inheritance

6 ©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Textbook An Introduction to Object-Oriented Programming with Java by C. Thomas Wu

7 ©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 0 Introduction to Computers and Programming Languages

8 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5 basic components in computer

9 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Five parts to the computer 1. CPU the heart of the computer 2. Memory RAM, ROM 3. Storage devices Disk drives, CD-ROM 4. Input and Output Devices keyboard, mouse display, printer 5. Communication Devices modem, network cards

10 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computers based on binary numbers computer memory built of switches that can be either on or off Two possible states can be represented with two digits - 0 and 1 a sequence of these binary digits (bits) makes a base 2 (binary) number

11 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Binary Numbers *Similar to decimal numbers, position of a digit gives power of 2 by which that digit needs to be multiplied 101.1 = 1x2 2 + 0x2 1 + 1x2 0 + 1x2 -1 *Easy to see how to represent integers 25 = 2 4 + 2 3 + 2 0 = 11001 *How to represent the decimal point in real numbers? use a special format that is kind of like scientific notation fixed number of bits for mantissa and exponent

12 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Software *Software consists of instructions that tells a computer what to do *Computer hardware needs software to be useful *Each type of CPU has a set of instructions that it understands *There are various types of software operating system system utilities applications *Part of what you'll learn in this class is how to write applications

13 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Programming Languages Inside a computer, everything is stored in binary form the CPU understands binary instructions Long strings of binary digits are hard for people to read and write without mistakes Programming languages are easier for people to read and write they can be converted into binary by a program called a compiler

14 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Desirable properties for a programming language Easy for people to learn Not too difficult to translate into machine language Simple rules Unambiguous Complete Can program anything you need to

15 ©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Java *Java is an object-oriented programming language from Sun *This is the language you will be using to write your applications *In the next chapter, we'll learn more about object-oriented programming and the software development process


Download ppt "©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I."

Similar presentations


Ads by Google