Lecter Java: Program design - Chapter 2: Java basics

This chapter introduces the basics of Java program design. It presents a series of programs that interact with their users through text-based outputs and inputs. The chapter also introduces the Java primitive types. These types and their associated operators enable programs to create and manipulate integer, floating-point, and character values and variables. | Java basics Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Programming Problem solving through the use of a computer system Maxim You cannot make a computer do something if you do not know how to do it yourself Software Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level Program to which computer can respond directly. Each instruction is a binary code that corresponds to a native instruction The instruction set for a machine is a set of binary codes that are unique to its CPU type. Consequently, different computers use different machine languages. The machine language understood by Intel’s Pentium processor is quite different from the machine language understood by IBM’s PowerPC® processor. A major problem with machine language programming | Java basics Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Programming Problem solving through the use of a computer system Maxim You cannot make a computer do something if you do not know how to do it yourself Software Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level Program to which computer can respond directly. Each instruction is a binary code that corresponds to a native instruction The instruction set for a machine is a set of binary codes that are unique to its CPU type. Consequently, different computers use different machine languages. The machine language understood by Intel’s Pentium processor is quite different from the machine language understood by IBM’s PowerPC® processor. A major problem with machine language programming is that it is very tedious and error prone to write directly in binary codes. Slightly less tedious is assembly language programming. An assembly language is a symbolic language for coding machine language instructions. Like machine language programmers, assembly language programmers must have a complete understanding of basic operations of the machine. Furthermore, because the corresponding machine operations are so primitive, for even very simple tasks, assembly language programs can be quite long and complicated. Software Program Sequence of instruction that tells a computer what to do Execution Performing the instruction sequence Programming language Language for writing instructions to a computer Major flavors Machine language or object code Assembly language High-level Symbolic language for coding machine language instructions The instruction set for a machine is a set of binary codes that are unique to its CPU type. Consequently, different computers use different machine .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.