computers are classified by price, processing speed, capacity, and

see the first two links below under related questions.

this exact question was posted and answered below.

also, you might want to look at some of the links supplied within these posts.

Week 4: Iteration and Repetition - Exercises Help



________________________________________


________________________________________

1. (TCO 5) The following is what type of loop?
Declare Integer n = 1
Declare Integer s = 0
Declare Integer number
Declare String keepGoing = "y"
While keepGoing == "y"
Display "Enter an integer."
Input number
Set s = s + number
Set n = n + 1
Display "Keep going? (Enter y or yes or n for no.)"
Input keepGoing
End While
(Points: 1)
count controlled pre-test
count controlled post-test
condition controlled pre-test
condition controlled post-test

2. (TCO 5) Which variable is the accumulator for the following loop?
Declare Integer n = 1
Declare Integer s = 0
Declare Integer number
Declare String keepGoing = "y"
While keepGoing == "y"
Display "Enter an integer."
Input number
Set s = s + number
Set n = n + 1
Display "Keep going? (Enter y or yes or n for no.)"
Input keepGoing
End While
(Points: 1)
n
s
number
keepGoing

3. (TCO 5) Which variable is the counter for the following loop?
Declare Integer n = 1
Declare Integer s = 0
Declare Integer number
Declare String keepGoing = "y"
While keepGoing == "y"
Display "Enter an integer."
Input number
Set s = s + number
Set n = n + 1
Display "Keep going? (Enter y for yes or n for no.)"
Input keepGoing
End While
(Points: 1)
n
s
number
keepGoing

4. (TCO 5) To which variable is the sentinel value assigned in the following loop?
Declare Integer n = 1
Declare Integer s = 0
Declare Integer number
Declare String keepGoing = "y"
While keepGoing == "y"
Display "Enter an integer."
Input number
Set s = s + number
Set n = n + 1
Display "Keep going? (Enter y for yes or n for no.)"
Input keepGoing
End While
(Points: 1)
n
s
number
keepGoing

5. (TCO 5) If the user enters 3, y, 6, y, 7 and n when prompted, what will be displayed by the pseudocode program?
Declare Integer n = 0
Declare Integer s = 0
Declare Integer number
Declare String keepGoing = "y"
While keepGoing == "y"
Display "Enter an integer."
Input number
Set s = s + number
Set n = n + 1
Display "Keep going? (Enter y for yes or n for no.)"
Input keepGoing
End While
Display n, " ", s
(Points: 1)
7 7
3 16
4 16
7 16

6. (TCO 5) Assume the user enters 3 when prompted to enter the number of values. What value will be displayed by the pseudocode program?
Declare Integer counter = 1
Declare Integer maxValue
Declare Integer s = 0
Display "Enter the number of values"
input maxValue
While counter <= maxValue
Set s = s + 2
End While
Display s
(Points: 1)
2
6
8
No value will be displayed, it is an infinite loop

7. (TCO 5) What value will be displayed by the following pseudocode program?
Declare Integer counter
Declare Integer accumulator = 0
For counter = 1 to 3
Set accumulator = accumulator + counter
End For
Display accumulator
(Points: 1)
9
6
3
0

8. (TCO 5) Which type of loop will always execute at least once? (Points: 1)
While
For
Do-While
Any pretest loop

9. (TCO 5) Which of the following is not found in a For loop? (Points: 1)
sentinel
counter
accumulator
loop body

10. (TCO 5) One of the following four types of loops can be used for any repetition structure needed in a program. (Points: 1)
For loop
While loop
Do-While loop
Do-Until loop

________________________________________

Computers are indeed classified based on various factors such as price, processing speed, capacity, and several other important features. Here's an explanation of how each of these factors contributes to the classification of computers:

1. Price: This refers to the cost of the computer and is often a major consideration for buyers. Computers can be classified into different price ranges, such as budget, mid-range, and high-end. Budget computers are typically more affordable and offer basic functionality, while high-end computers tend to be more expensive due to advanced features and superior performance.

2. Processing Speed: The processing speed of a computer determines how quickly it can execute tasks and process information. It is usually measured in megahertz (MHz) or gigahertz (GHz). Computers with higher processing speeds generally perform complex tasks more quickly and efficiently. Processors from different manufacturers (such as Intel or AMD) and different generations (such as Core i5, Core i7) can affect the processing speed.

3. Capacity: Capacity refers to the storage capacity of a computer, typically measured in terms of gigabytes (GB) or terabytes (TB). It determines how much data can be stored on the computer's hard drive or solid-state drive (SSD). Computers with larger capacities can accommodate more files, documents, videos, and applications. Generally, higher-capacity computers are more suitable for tasks that require extensive storage, such as video editing or gaming.

In addition to these factors, computers can also be classified based on other parameters like:

4. Form Factor: This refers to the physical size and shape of the computer. Examples of common form factors are desktops, laptops, all-in-one PCs, and mini PCs. Each form factor has its own benefits and limitations, and the choice depends on the user's needs and preferences.

5. Operating System: The type of operating system (OS) installed on a computer can also affect its classification. Common OS options include Windows, macOS, and Linux. Different operating systems offer distinct features, user interfaces, and compatibility with software, which makes them suitable for different applications and user preferences.

6. Specialized Features: Some computers are classified based on specialized features tailored to specific purposes, such as gaming computers, workstations, or servers. These computers are optimized to excel in specific tasks and have components like high-performance graphics cards, specialized processors, or enhanced networking capabilities.

It's important to note that computers have multiple classifications and often overlap across these factors. Therefore, it is crucial to consider multiple aspects and prioritize your requirements when choosing a computer that suits your needs.