
Principles of Information Systems, Loose-Leaf Version
13th Edition
ISBN: 9781305971820
Author: Ralph Stair, George Reynolds
Publisher: Course Technology
expand_more
expand_more
format_list_bulleted
Question
Chapter 3, Problem 13DQ
Program Plan Intro
Components of computer:
Computer has four major components, they are:
- Central processing unit (CPU)
- Memory unit
- Input devices
- Output devices
Central Processing Unit (CPU):
- CPU plays the key role in a computer by carrying out instructions of a computer program.
- It performs all the basic logic, arithmetic, controlling and input/output operations that are specified by the instructions.
- The CPU comprises of two units, Arithmetic logic unit (ALU) and control unit (CU).
Memory unit:
- Once computer program instructions set are transformed into machine code by CPU, the machine code is stored in memory.
- Then the CPU fetches the required data and instructions from memory, perform the required operations and then sends the result and next set of instructions back to memory.
Input devices:
- The devices used by the user to feed information to computer, such as a hard drive, keyboard, or a networking card.
- These devices get the data from outside world into computer in the way that human eyes and ears bring the data to brain.
Output devices:
- Output devices are used by computer to deliver the information to the user, such as a monitor, printer, and speaker.
- The CPU takes the machine code present in memory and converts it into a format that is required by monitor’s hardware.
- Then the monitor’s hardware alters that information into different light intensities such that words or pictures are seen.
Expert Solution & Answer

Trending nowThis is a popular solution!

Students have asked these similar questions
7. See the code below and solve the following.
public class Test {
public static void main(String[] args) {
int result = 0;
}
result = fn(2,3);
System.out.println("The result is:
+ result);
// fn(x, 1) = x
// fn(x, y)
=
fn(x, y-1) + 2, when y>1
public static int fn(int x, int y) {
if (x <= 1)
return x;
else
return fn(x, y-1) + 2;
}
}
7-1. This program has a bug that leads to infinite recursion. Modify fn(int x, int y) method to fix
the problem. (2 point)
7-2. Manually trace the recursive call, fn(2,3) and show the output (step by step). (2 point)
7-3. Can you identify the Base Case in recursive method fn(int x, int y)? (1 point)
6. See the code below and solve the following.
import java.io.*;
public class DataStream {
}
public static void main(String[] args)
}
DataOutputStream output = new DataOutputStream(new FileOutputStream("temp.dat"));
output.writeUTF("Book1");
output.writeInt(85);
output.writeUTF("Book2");
output.writeInt(125);
output.writeUTF("Book3");
output.writeInt(70);
output.close();
// ToDo: Read all data from temp.dat and print the data to the standard output (monitor)
6-1. This program has a compile error, and the message is “Unhandled exception type
FileNotFoundException". How do you fix this error? (1 point)
6-2. Is FileNotFoundException a checked exception or an unchecked exception? (1 point)
6-3. What is the difference between checked exception and unchecked exception? (1 point)
6-4. Please complete the above program by reading all data from temp.dat and print the data
to the standard output (monitor) by using System.out.print, System.out.println or
System.out.printf method. (2 points)
Write a program that reads a list of integers from input and determines if the list is a palindrome (values are identical from first to last and last to first). The input begins with an integer indicating the length of the list that follows. Assume the list will contain a maximum of 20 integers. Output "yes" if the list is a palindrome and "no" otherwise. The output ends with a newline.
Hints: - use a for loop to populate the array based on the specified size (the first number entered)
- use a for loop to check first value with last value, second value with second from end, etc.
- if the values do not match, set a Boolean variable to flag which statement to output (yes or no)
Ex: If the input is (remember to include spaces between the numbers):
6 1 5 9 9 5 1
the output is:
yes
Ex: If the input is:
5 1 2 3 4 5
the output is: C++ coding
Chapter 3 Solutions
Principles of Information Systems, Loose-Leaf Version
Ch. 3.1 - Prob. 1RQCh. 3.1 - Prob. 2RQCh. 3.1 - Prob. 1CTQCh. 3.1 - Prob. 2CTQCh. 3.2 - Prob. 1RQCh. 3.2 - Prob. 2RQCh. 3.2 - Prob. 1CTQCh. 3.2 - Prob. 2CTQCh. 3.3 - Prob. 1RQCh. 3.3 - Prob. 2RQ
Ch. 3.3 - Prob. 1CTQCh. 3.3 - Prob. 2CTQCh. 3 - Prob. 1SATCh. 3 - Prob. 2SATCh. 3 - Prob. 3SATCh. 3 - Prob. 4SATCh. 3 - Prob. 5SATCh. 3 - LI is the fastest type of cache memory built into...Ch. 3 - Prob. 7SATCh. 3 - Prob. 8SATCh. 3 - Prob. 9SATCh. 3 - Prob. 10SATCh. 3 - Prob. 11SATCh. 3 - Prob. 12SATCh. 3 - A _________ is a low-cost, centrally managed...Ch. 3 - Prob. 14SATCh. 3 - Prob. 15SATCh. 3 - Prob. 16SATCh. 3 - Prob. 17SATCh. 3 - Identify four fundamental components of every...Ch. 3 - What is the purpose of the computer bus?Ch. 3 - Prob. 3RQCh. 3 - Prob. 4RQCh. 3 - Prob. 5RQCh. 3 - Prob. 6RQCh. 3 - Prob. 7RQCh. 3 - Prob. 8RQCh. 3 - Prob. 9RQCh. 3 - Prob. 10RQCh. 3 - Prob. 11RQCh. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - Prob. 17RQCh. 3 - Prob. 18RQCh. 3 - Prob. 1DQCh. 3 - Prob. 2DQCh. 3 - Prob. 3DQCh. 3 - Prob. 4DQCh. 3 - Prob. 5DQCh. 3 - Prob. 6DQCh. 3 - Prob. 7DQCh. 3 - Prob. 8DQCh. 3 - Prob. 9DQCh. 3 - Prob. 10DQCh. 3 - Prob. 11DQCh. 3 - Prob. 12DQCh. 3 - Prob. 13DQCh. 3 - Prob. 3PSECh. 3 - Prob. 1TACh. 3 - Prob. 2TACh. 3 - Prob. 1WECh. 3 - Prob. 2WECh. 3 - Prob. 3WECh. 3 - Prob. 1CECh. 3 - Prob. 2CECh. 3 - Prob. 3CECh. 3 - Prob. 1CTQ1Ch. 3 - Prob. 2CTQ1Ch. 3 - Prob. 3CTQ1Ch. 3 - Prob. 1CTQ2Ch. 3 - Prob. 2CTQ2Ch. 3 - Prob. 3CTQ2
Knowledge Booster
Similar questions
- Design and draw a high-level "as-is" process diagram that illustrates a current process related to a product or service offered through the SSDCI.gov database.arrow_forwardCompare last-mile connections for connecting homes and businesses to the Internetarrow_forwardExplain wireless networking standardsarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781305971776Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningPrinciples of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
- Management Of Information SecurityComputer ScienceISBN:9781337405713Author:WHITMAN, Michael.Publisher:Cengage Learning,Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningFundamentals of Information SystemsComputer ScienceISBN:9781337097536Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning

Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning

Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning

Management Of Information Security
Computer Science
ISBN:9781337405713
Author:WHITMAN, Michael.
Publisher:Cengage Learning,

Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning

Fundamentals of Information Systems
Computer Science
ISBN:9781337097536
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning