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), Global Edition, With Access Card, 10 Ed
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)
- 1. 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_forwardTheoretical computer science Hello i need help with this task, 3.Part Subtask (b)Let L1, L2 and L3 be any languages above the alphabet Σ= {a,b}of which the following is known: The language L1 has the Nerode index 4. The language L2 has the Nerode index 6. The language L3 has an infinite Nerode index. Which of the following statements are -regardless of how L1, L2 and L3 are specifically chosen -always correct, which ones are not? Justify your !!!!!!!!!!Answers briefly. (i) The language L = Σ* \ L1 has the Nerode index 4.(ii) The language L = Σ* \ L3 has an infinite Nerode index.(iii) The language L = L1 ∩ L2 has a Nerode index less than or equal to 24.(iv) The language L = L1 ∩ L3 has an infinite Nerode index.arrow_forwardWhich of the following costs would be significantly impacted by poor readability? A.Executing Programs B.Compiling Programs C.Writing Programs D.Maintaining Programsarrow_forward
- Assume the following declarations and initializations (MIN, MAX, num) are made justbefore each sub-question 1 to 15 (i.e., assume these initializations are in effect at thebeginning of each problem). What is the output each code? final int MIN = 10, MAX = 20;int num = 15; 8. do {num = num + 1;if (num * 2 > MAX + num)System.out.print(num + “ “);} while (num <= MAX); 9. for (int value = 0; value >= 7; value++)System.out.print(value + “ “); 10. for (int value = 7; value < 0; value--)System.out.print(value + “ “); 11. for (int value = 1; value >= 20; value+=4)System.out.print(value + “ “);arrow_forward1. Determine if the following statements are mathematical or not. a. Today is MMW class day. b. Eh, ‘di wow! c. 1 - 1 = 1 d. Please message me as soon as possible. e. All plants are animals. f. ? ≤ 3arrow_forwardAnswer the following questions and fill and the blanks Question 1 Match these function names with the most accurate statement about them. Function names: a 2nd_name getName input Calculate_total user_name statements: This is a good function name. This name is the same as a Python built-in name (and so should not be used). This name sounds like a noun/variable. This name does not use the standard naming convention. This name does not give enough information about the meaning of the function. This name is invalid (breaks Python naming rule) Question 2 Write the result of the expression (as evaluated by Python): int(5.7) // 2 Blank 1 - add your answer Question 3 Which one of the following is a correct way to get the user to enter their salary and store it in a Python variable? a) variable = input(float("salary"))b) input = float("salary")c) salary = float(input())d) float(input("salary)) Question 4 What is wrong with the following…arrow_forward
- Q1) Consider the following statements. Car myCar, yourCar; // A myCar = new Car( ); // B yourCar = myCar; // C yourCar = new Car( ); // D myCar = yourCar; // E Draw a diagram showing the complete state of memory (and the consequences for myCar and yourCar) after each statement is executed in the order written above.arrow_forwardFor each of the following statements, give the value contained within x and the data type of that value when the statement is executed by the Python interpreter. Value Data type x= 14/3 x= 9%4 x = len(“Hello World”) s= ‘hello world’ x = s[6] mylist = [“ab”,”CDE”,”x”] x = len(mylist)arrow_forwardDear Sir/Madam, This assignment is published on your web site, I wans to learn the Python code for the same assignment as showing below. In 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…arrow_forward
- in C For each of the following, write a single statement that performs the indicated task. Assume that long integer variables value1 and value2 have been defined and that value1 has been initialized to 200000. a) Define the variable lPtr to be a pointer to an object of type long. b) Assign the address of variable value1 to pointer variable lPtr. c) Print the value of the object pointed to by lPtr. d) Assign the value of the object pointed to by lPtr to variable value2. e) Print the value of value2. f) Print the address of value1. g) Print the address stored in lPtr. Is the value printed the same as the address of value1?arrow_forwardThe impact of COVID-19 on the citizenry has not been good especially when it comes to buying of food and the payment for the provision of essential services such as light and water bills. After lockdown, the government decided to support customers by halving the customer’s light bills. a) Write a program to request for customer’s name, previous and current meter reading (in kwh) b) Your program should categorize customers into domestic, commercial and industrial based on the quantity of electricity consumed. The categorization should follow: 1. Domestic if less than or equal to 100 kwh is consumed;2. Industrial if more than 100kwh but less than or equal to 200kwhis consumed;3. Commercial when more than 200kwh is consumed c) Define a method to compute the amount to be paid based on the following consumption pattern, for:1. Domestic customers, 0.3 GHC per kwh for the first 60kwh and 0.5 GHC for the rest2. Industrial customers, 0.5 GHC per kwh for the first 120kwh and 0.75 GHC for the…arrow_forwardCreate a program using c++ compiler that will ask for the username and password. USER NAME: AAA001A PASSWORD: T!p@53 Note: Correct username and password combination, display “You entered a valid username and password combination” and “Access Granted”. Incorrect username and/or password combination, display “Please check your input”, “Username and/or the password is invalid”, and “Access Denied”.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr