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 (10th Edition)
Additional Engineering Textbook Solutions
Starting Out With Visual Basic (8th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Mechanics of Materials (10th Edition)
Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)
Web Development and Design Foundations with HTML5 (8th Edition)
Degarmo's Materials And Processes In Manufacturing
- 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_forwardC# PROGRAM THE AVERAGE MUST HAVE DECIMALarrow_forwardDesign and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine whether the year is a leap year (and therefore has 29 days in February) in the Gregorian calendar. A year is a leap year if it is divisible by 4, unless it is also divisible by 100 but not 400. For example, the year 2003 is not a leap year, but 2004 is. The year 1900 is not a leap year because it is divisible by 100, but the year 2000 is a leap year because even though it is divisible by 100, it is also divisible by 400. Produce an error message for any input value less than 1582 (the year the Gregorian calendar was adopted)arrow_forward
- Exercise 7: In Physics, the position of an object with respect to time is given by the following mathematical expression: 1 x = vịt + Where x is the position in meters t is the time in seconds, vị is the initial velocity in m/s and, 2. g is the acceleration 9.80 m/s Develop a Python script (i.e. program) that calculates and prints the position of the object 6. at a given timet=2, and initial velocity v: = 200 m/s.arrow_forwardOne of the benefits of computers is that they can be programmed to do a specific task. Which of the following statements is correct?arrow_forwardIn 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_forward
- 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 should ask the user to specify the desired operation (addition/subtraction/multiplication/division/power/remainder/terminate/reset). You can…arrow_forwardIn 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_forwardCourse Level Programming Assignment - Programming a Calculator using Python 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) subtract(a,b) • Subtraction (-) • Multiplication (*) • Division (/) multiply(a,b) divide(a,b) power(a,b) remainder(a,b) • Power (^) • Remainder (%) • Control Operations o Terminate (#) o 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: You can start • The program should ask the user to specify the desired operation…arrow_forward
- Convert to C# Language def Deposit(balance, pin): # Deposit function p = int(input("Enter the PIN: ")) # taking PIN from user if p == pin: # if PIN matches with actual PIN amount = float(input("Enter deposit amount: ")) # taking deposit amount from user balance += amount # adding deposit amount to balance else: # else (if PIN not matches) print("Incorrect PIN!!") # display message return balance # return balance def Withdraw(balance, pin): # Withdraw function p = int(input("Enter the PIN: ")) # taking PIN from user if p == pin: # if PIN matches with actual PIN amount = float(input("Enter withdraw amount: ")) # taking withdrawal amount from user if amount > balance:…arrow_forwardProgramming - C Language Find the code of the following: 1. FORGIVEN!! Yeeey!! Thanks to your help, my friend Lionel Richie forgave me! In return to his kindness and compassion, I want to give him a gift. I'm thinking of giving him straight up cash! I've already prepared something in advance, I just need your help to complete it. Instructions: In the code editor, you are provided with a main() function that asks for an integer input from the user which represents the cash to be given to Lionel and passes it to the getGift() function call. The getGift() function is already declared and partially defined. Your task is to complete the function definition. The getGift() function multiplies the passed integer value by 3 and then checks if the result is even. If it is, the getGift() function adds 100 to the result. Otherwise, it adds 200 to the result. The getGift() function would then return the result as the return type of this function is int. Input 1. Cash amount…arrow_forwardCreate a quiz game by mips language on marsarrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr