The term “programming” is used in many contexts. We will discuss its meaning in the context of human-to-computerinteraction. In the simplest terms, programming is the way of writing a sequence of instructions to tell a computerto perform a specific task. The sequence of instructions for a computer is known as a program. A set of well-definednotations is used to write a program. The set of notations used to write a program is called a programming language. Theperson who writes a program is called a programmer. A programmer uses a programming language to write a program.How does a person tell a computer to perform a task? Can a person tell a computer to perform any task or does acomputer have a predefined set of tasks that it can perform? Before we look at human-to-computer communication,let’s look at human-to-human communication. How does a human communicate with another human? Youwould say that human-to-human communication is accomplished using a spoken language, for example, English,German, Hindi, etc. However, spoken language is not the only means of communication between humans. Wealso communicate using written languages or using gestures without uttering any words. Some people can evencommunicate sitting miles away from each other without using any words or gestures; they can communicate atthought level.To have a successful communication, it is not enough just to use a medium of communication like a spoken orngôn ngữ viết. Yêu cầu chính cho một giao tiếp thành công giữa hai bên là khả năng của cả haibên để hiểu những gì được truyền đạt từ phía bên kia. Ví dụ, giả sử không có hai người. Một trong nhữngngười biết làm thế nào để nói tiếng Anh và một trong những khác biết làm thế nào để nói tiếng Đức. Họ có thể giao tiếp vớiVới nhau? Câu trả lời là không, bởi vì họ không thể hiểu lẫn nhau ngôn ngữ. Điều gì xảy ra nếu chúng tôi thêm mộtAnh-Đức dịch giữa chúng? Chúng tôi sẽ đồng ý rằng họ sẽ có thể giao tiếp với sự giúp đỡ của mộtDịch, mặc dù họ không hiểu nhau trực tiếp.Máy tính hiểu hướng dẫn chỉ trong định dạng nhị phân, mà là một chuỗi các số 0 và 1s. Trình tự củasố 0 và 1s, tất cả máy tính hiểu, được gọi là ngôn ngữ máy hay mã máy. Một máy tính có một cố địnhtập hợp các hướng dẫn cơ bản nó hiểu được. Mỗi máy tính đã thiết lập của riêng mình của hướng dẫn. Ví dụ, có thể 0010là một hướng dẫn để thêm hai con số trên một máy tính và 0101 là một hướng dẫn để thêm hai số điện thoại khácmáy tính. Vì vậy, chương trình được viết bằng ngôn ngữ máy là phụ thuộc vào máy. Đôi khi mã máy làđược gọi là mã nguồn gốc vì nó là bản địa của máy tính mà nó được viết. Chương trình được viết bằng ngôn ngữ máylà rất khó khăn, nếu không phải là không thể, để viết, đọc, hiểu, và sửa đổi. Giả sử bạn muốn viết một chương trình cho biết thêm hai con số, 15 và 12. Chương trình để thêm hai con số trong ngôn ngữ máy sẽ trông giống như mộtHiển thị dưới đây. Bạn không cần phải hiểu mẫu mã được viết trong phần này. Đó là chỉ cho sự châm củathảo luận và tác giả.
đang được dịch, vui lòng đợi..