Concept explainers
Fill in the blanks in each of the following statements:
a) The logical unit of the computer that receives information from outside the computer
for use by the computer is the_________.
b) The process of instructing the computer to solve a problem is called_____.
c) ________is a type of computer language that uses English-like abbreviations for machine-language instructions.
d) _________________is a logical unit of the Computer that sends information which has already
been processed by the computer to various devices so that it may be used outside the
computer.
e) ________and________are logical units of the computer that retain information.
f) _________is a logical unit of the computer that performs calculations.
g) __________is a logical unit of the computer that makes logical decisions.
h) __________languages are most convenient to the programmer for writing
quickly and easily.
i) The only language a computer can directly understand is that computer's _______.
j) ________is a logical unit of the computer that coordinates the activities of all the other
logical units.
a. To provide a name for the logical unit in the computer that receives information from outside the computer.
Answer to Problem 1.4E
Input unit
Explanation of Solution
All data, information or instructions are received in computer from input units. Input units are responsible for receiving data from users and sending this data to the central processing unit where it can be processed.
Therefore, the logical unit of the computer that receives information from outside for further processing by computrer is the “input unit”.
b. To name the process of instructing the computer to solve a problem.
Answer to Problem 1.4E
Programming
Explanation of Solution
Certain sets of instructions to accomplish a task are provided to computer in form of programs. The process of writing these instructions is known as programming. Therefore, the process of instructing the computer to solve a problem is called “programming”.
c. To name the type of computer language that uses English-like abbreviations for machine-language instructions.
Answer to Problem 1.4E
Assembly language
Explanation of Solution
Machine language can be directly understood by the computer. A machine language consists of only 0s and 1s since the computer can understand only these two symbols. Due to this, Machine language is difficult to understand and it is hard to provide the simplest instructions to the computer using this language. Therefore, assembly language was introduced to act as an interface between machines and humans. Assembly language uses English-like abbreviations, which makes it easier to be understood by humans. The instructions written in assembly language are converted to machine language for further processing.
Therefore, “Assembly language” is a type of computer language that uses English-like abbreviations for machine-language instructions.
d. To name the logical unit of the computer that sends already processed information to the outside world.
Answer to Problem 1.4E
Output unit
Explanation of Solution
One part of the logical unit is responsible for shipping the processed data of the computer to the users. This unit is known as the output unit
Therefore, the “Output unit” is a logical unit of the computer that sends information that has already been processed by the computer to various devices so that it may be used outside the computer.
d. To name the logical units of computer that retains information.
Answer to Problem 1.4E
Memory Unit and Secondary storage unit
Explanation of Solution
The memory unit holds the data that is to be used by the central processing unit (CPU). The memory unit has fast data transfer speed and therefore is in direct contact with CPU. Memory unit is temporary storage and loses its data as soon as the computer is turned off.
The secondary storage unit is responsible for holding data for a longer period of time as compared to the memory unit. The data transfer rate of the secondary storage unit is much smaller as compared to the memory unit. In this unit, data is not lost even after computer power is turned off. So, Secondary storage unit is for long term usage.
Therefore, “Memory unit” and “Secondary storage unit” are logical units of the computer that retain information.
f. To name the logical unit of the computer that performs calculations.
Answer to Problem 1.4E
Arithmetic logic unit
Explanation of Solution
All calculations such as addition, subtraction, multiplication, etc. are performed by Arithmetic logic unit (ALU).
Therefore, “Arithmetic logic unit” is a logical unit of the computer that performs calculations.
g. To name the logical unit of the computer that performs logical decisions.
Answer to Problem 1.4E
Arithmetic logic unit
Explanation of Solution
Along with performing arithmetic calculations, the Arithmetic logic unit is also responsible for performing logical decisions inside a computer system such as comparing whether any two items from computer memory are equal or not.
Therefore, “Arithmetic logic unit” is a logical unit of the computer that makes logical decisions.
h. To name the languages which are most convenient to the programmer for writing programs quickly and easily.
Answer to Problem 1.4E
High-level
Explanation of Solution
Programming languages can be categorized into three, they are machine language, assembly language and high-level language. Among these, high-level language is the most user-friendly as it follows English like syntax. Programming with high-level languages makes it easier for programmers to provide an efficient program.
Therefore, “High-level” languages are most convenient to the programmer for writing programs quickly and easily.
i. To name the computer language that a computer can directly understand.
Answer to Problem 1.4E
Machine language
Explanation of Solution
Machine language is represented by two symbols, i.e., 0 and 1. A computer can understand only machine language. Programs written in any language are first converted to machine language before being executed.
Therefore, the only language a computer can directly understand is the computer’s “Machine language”.
j. To name the logical unit of the computer that coordinates all the activities of all logical units.
Answer to Problem 1.4E
Central Processing Unit (CPU)
Explanation of Solution
CPU is considered as an administrative unit for a computer. It tells the input unit when information should be read into the memory and sent for processing by ALU. It also instructs the output unit about when to transfer data to the user.
Therefore, the “Central Processing Unit (CPU)” is a logical unit of the computer that coordinates the activities of all the other logical units.
Want to see more full solutions like this?
Chapter 1 Solutions
C++ How to Program (Early Objects Version)
Additional Engineering Textbook Solutions
Database Concepts (8th Edition)
Problem Solving with C++ (10th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Problem Solving with C++ (9th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Introduction to Java Programming and Data Structures, Comprehensive Version (11th Edition)
- Using the concept of object-oriented programming (class): 1.Write a program that prompts the user to enter three integer numbers. 2.The program should ask the user to select the operation code to perform it to the numbers. 3.The operation codes are as the following: s sum (a + b + c) m multiplication (a x b x c) h the maximum number x exit The program shall keep asking the user to enter an operation code unless the user chooses x to exit. You are required to create 1 parent class call Maths and 3 child classes – Sum, Multiply and Maximum. Design the program based on your creativity and knowledge of the class features. Write a comment # beside the line of code in which you implement the concepts that you have learned in class.arrow_forward1. Mark the following statements as true or false. a. The calculating device called the Pascaline could calculate sums up to eight figures long. (1) b. All programs must be loaded into the CPU before they can be executed and all data must be loaded into main memory before it can be manipulated. (2) c. Main memory is an ordered sequence of cells and each cell has a random location in main memory. (2) d. The program that loads first when you turn on your computer is called the operating system. (2) e. Analog signals represent information with a sequence of 0s and 1s. (3) f. The machine language is a sequence of 0s and 1s. (3) g. A Binary code is a sequence of 0s and 1s. (3) h. A sequence of eight bits is called a byte. (3) i. One GB is MB. (3) j. In ASCII, A is the 65th character. (3) k. The number system used by a computer is base 2. (3) l. An assembler translates the assembly language instructions into machine language. (4) m. A compiler translates the source program into an object program. n. In a program, statements that begin with the symbol are called preprocessor directives (7) o. An object program is the machine language version of a high-level language program. (9) p. All logical errors, such as division by 0, are reported by the compiler. (9) q. In object-oriented design (OOD), a program is a collection of interacting objects. (10) r. An object consists of data and operations on that data. (10) s. ISO stands for International Organization for Standardization. (11)arrow_forwardC# Language should accept inputs that has decimal pointsarrow_forward
- A __________________ error violates the rules for how Java statements must be written.arrow_forwardn this assignment you will write a computer program from scratch using the Python programming language. This program will function as a simple calculator. Objectives Write a simple Python program that performs arithmetic operations based on the user input Stage 1: A simple calculator Your calculator should provide the following arithmetic and control operations. Arithmetic Operations Addition (+) add(a,b) Subtraction (-) subtract(a,b) Multiplication (*) multiply(a,b) Division (/) divide(a,b) Power (^) power(a,b) Remainder (%) remainder(a,b) Control Operations Terminate (#) Reset ($) Write a function select_op(choice) to select the appropriate mathematics function based on the users selection. The behavior of the program should be as follows: The program should ask the user to specify the desired operation (addition/subtraction/multiplication/division/power/remainder/terminate/reset). You can…arrow_forward12. Whenever we need to execute some instructions repeatedly ______________ statements are used in C-programming languagearrow_forward
- _____________ is the meaning or logic behind a valid program.arrow_forwardINSTRUCTIONS: • You are to answer this activity individually. • You are to create a Python application that makes use of different variables and expressions to output different sets of data. • It must meet all of the following requirements: • The application must create a variable for pounds (Ibs) and convert it to kilograms (kg) then output the initial value and converted value. • The application must create a variable for miles (mi) and convert it to kilometers (km) and then output the initial value and converted value. • The application must create a variable for Fahrenheit (°F) and convert it to Celsius (°C) and then output the initial value and converted value. • The application must calculate the average age of a group of 10 students then display the ages of all the students and the average age of the students. • The application must output a multiline/regular string. The multiline/regular string will be a fantasy story based on what you will come up with, either based on an…arrow_forwardFill in the blanks: Q. Expansion of PIO in programming is_____________.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning