The pseudocode to calculate the average of the test scores until the user enters a negative input serves as a prototype of the actual program
<h3>The errors in the pseudocode</h3>
The errors in the pseudocode include:
- Inclusion of unusable segments
- Incorrect variables
- Incorrect loops
<h3>The correct pseudocode</h3>
The correct pseudocode where all errors are corrected and the unusable segments are removed is as follows:
start
Declarations
num test1
num test2
num test3
num average
output "Enter score for test 1 or a negative number to quit"
input test1
while test1 >= 0
output "Enter score for test 2"
input test2
output "Enter score for test 3"
input test3
average = (test1 + test2 + test3) / 3
output "Average is ", average
output "Enter score for test 1 or a negative number to quit"
input test1
endwhile
output "End of program"
stop
Read more about pseudocodes at:
brainly.com/question/11623795
Answer:
Following are the program in the C++ Programming Language.
#include <iostream> // header file
using namespace std; // namespace
int main() // main function
{
int n=8; //variable declaration
for(int k=n;n>=0;n-=2) // iterating over the loop to print the format
{
int n1=n;
for(int j=n1;n1>=0;n1-=2)
{
cout<<n1<<" "; // display the format
}
cout<<endl; // next line
}
return 0;
}
<u>Output</u>:
8 6 4 2 0
6 4 2 0
4 2 0
2 0
0
Explanation:
Following are the description of the program.
- Set an integer type variable "n" and initialize in it to 8.
- Set two for loop, the first loop iterate from the variable "n" that is 8 to 0 with decrement by 2 and next for loop also iterate from 8 to 0 then, print the value of the variable "n1".
- Finally, we break line after the second for loop.
Answer:
SCSI controller can hold several devices on a single chain
SCSI connectors are used in high-end servers
Explanation:
Small Computer System Interface (SCSI) is a physical cable to transfer data between a computer and high-end server, and for that, we cannot use this cable in laptops or tables, only we must see the size of the cable to understand and discard that two options, and an advantage of the cable is held several devices on a single chain.