tailieunhanh - Lecture An introduction to computer science using java (2nd Edition): Chapter 1 - S.N. Kamin, D. Mickunas, E. Reingold

Chapter 1 - What is programming? In this chapter we will: demonstrate some problem-solving techniques needed in programming, design an algorithm to solve a problem, write a program to implement an algorithm, discuss the importance of object-oriented programming, discuss some basics of computer hardware, describe the process of entering and running Java programs. | Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by . Kamin, D. Mickunas, E. Reingold Chapter Preview In this chapter we will: demonstrate some problem-solving techniques needed in programming design an algorithm to solve a problem write a program to implement an algorithm discuss the importance of object-oriented programming discuss some basics of computer hardware describe the process of entering and running Java programs Definitions program a set of directions telling a computer exactly what to do programming languages languages for specifying sequences of directions to a computer algorithm a sequence of language independent steps which may be followed to solve a problem Final Maze Solving Program step forward; while (inside the maze?) { turn right; while (facing a wall?) { turn left; } step forward; } Object-Oriented Programming A modern programming paradigm that allows the programmer to model a problem in a real-world fashion Objects interact with each other by sending messages An object is an instance of a class A class implements an interface and specifies the behavior of an object Object-Oriented Programming and Java The use of OOP in Java is pervasive easy to create multiple objects of the same type easy to create similar objects without having to rewrite the overlapping code OOP makes programs easier to understand and more reliable Prevents objects from having to know any more about structure of other objects than is really necessary Computer Organization central-processing unit performs the actual work of executing the program main memory holds the program and during execution hard disk holds all programs not executing and all data files input/output devices allow the computer to communicate with the outside world Running a Program First the program and all its data is copied from the hard disk into main memory The CPU goes to the location of the program instruction and reads that | Chapter 1 What is Programming? Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by . Kamin, D. Mickunas, E. Reingold Chapter Preview In this chapter we will: demonstrate some problem-solving techniques needed in programming design an algorithm to solve a problem write a program to implement an algorithm discuss the importance of object-oriented programming discuss some basics of computer hardware describe the process of entering and running Java programs Definitions program a set of directions telling a computer exactly what to do programming languages languages for specifying sequences of directions to a computer algorithm a sequence of language independent steps which may be followed to solve a problem Final Maze Solving Program step forward; while (inside the maze?) { turn right; while (facing a wall?) { turn left; } step forward; } Object-Oriented Programming A modern programming paradigm that allows the programmer to model a problem in a

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
19    228    0    27-04-2024
10    156    0    27-04-2024
37    156    0    27-04-2024
2    108    0    27-04-2024
11    100    0    27-04-2024
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.