1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Novosadov [1.4K]
3 years ago
5

"a terminal has two input queues." as a user types each character to the terminal, it is collected in the ____ queue.

Computers and Technology
1 answer:
lora16 [44]3 years ago
6 0
<span>The answer is raw.  "a terminal has two input queues." as a user types each character to the terminal, it is collected in the raw queue.  As the user types in each character, it is collected in the raw input queue, When the line is completed and the enter key is pressed, the line is copied from the raw input queue to the canonical input queue and the Central Processing Unit (CPU) interprets the line.</span>
You might be interested in
Write a program that prompts the user to input an integer and then outputs both the individual digits of the number and the sum
otez555 [7]

Answer:

Explanation:

#Using python to create the list

#first we create an empty list to store our numbers.

import math

data = []

x = 0

InputSum = 0

NumInput=int(input("how many number do you want to add"))

while x <=(NumInput):

   Input=int(input("Enter the numbers here"))

   data.append(Input)

   x = x+1

   InputSum = InputSum + Input  #this is to add the numbers entered

print("The number you entered are ")

print(*data)  #this print the numbers entered

print("The sum of the numbers is", InputSum)

3 0
3 years ago
Write a program that first calls a function to calculate the square roots of all numbers from 1 to 1,000,000 and write them to a
svlad2 [7]

Answer:

The csharp program to compute square roots of numbers and write to a file is as follows.

class Program  

{  

static long max = 1000000;  

static void writeRoots()  

{  

StreamWriter writer1 = new StreamWriter("roots.txt");  

double root;  

for (int n=1; n<=max; n++)  

{  

root = Math.Sqrt(n);  

writer1.WriteLine(root);  

}  

}  

static void Main(string[] args)  

{  

writeRoots();  

}  

}

The program to compute squares of numbers and write to a file is as follows.

class Program  

{  

static long max = 1000000;  

static void writeSquares()  

{  

StreamWriter writer2 = new StreamWriter("squares.txt");  

long root;  

for (int n = 1; n <= max; n++)  

{  

root = n*n;  

writer2.WriteLine(root);  

}  

}  

static void Main(string[] args)  

{  

writeSquares();  

}  

}  

Explanation:

1. An integer variable, max, is declared to hold the maximum value to compute square root and square.

2. Inside writeRoots() method, an object of StreamWriter() class is created which takes the name of the file as parameter.

StreamWriter writer1 = new StreamWriter("roots.txt");

3. Inside a for loop, the square roots of numbers from 1 to the value of variable, max, is computed and written to the file, roots.txt.

4. Similarly, inside the method, writeSquares(), an object of StreamWriter() class is created which takes the name of the file as parameter.

StreamWriter writer2 = new StreamWriter("squares.txt");

5. Inside a for loop, the square of numbers from 1 to the value of the variables, max, is computed and written to the file, squares.txt.

6. Both the methods are declared static.

7. Inside main(), the method writeRoots() and writeSquares() are called in their respective programs.

8. Both the programs are written using csharp in visual studio. The program can be tested for any operation on the numbers.

9. If the file by the given name does not exists, StreamWriter creates a new file having the given name and then writes to the file using WriteLine() method.

10. The csharp language is purely object-oriented language and hence all the code is written inside a class.

3 0
3 years ago
Henry is troubleshooting a network connection and wants to see if he can connect to the server on his network. Which Microsoft c
Lemur [1.5K]

Answer:

The command to use to check if he can connect to the server is the ping command.

Explanation:

The ping command is a network testing command to verify that one computer can reach or communicate with another computer on the network.

In Microsoft, the ping command is used in the command prompt window.

The ping command sends an Internet Control Message Protocol or ICMP Echo request or packets to another computer on the network and waits for a reply. The reply either informs you of the time it took to communicate with the other computer or inform you that there was no response.

4 0
3 years ago
/* ELEN 1301 Programming Assignment #5. Name : Your name. Student ID : Your student ID #. Due date : Due date Purpose of the pro
cestrela7 [59]

Answer:

Here is the C++ program:

#include<iostream> //to use input output functions

#include<iomanip> //to use setprecision

using namespace std; //to identify objects cin cout

int main() { //start of main function

     int n1, n2, n3, n4, n5, n6, n7, min, max;  // declare variables for 7 numbers, minimum value and maximum value

     double sum= 0; //declare variable to hold sum of 7 numbers

     double average;  //declare variable to hold average of 7 numbers

     cout<<"Enter first number: "; //prompts user to enter 1st number

     cin>>n1; //reads first number from user

     max = n1; //sets the first number to maximum

     min=n1; //sets the first number to minimum

     cout<<"Enter second number: "; //prompts user to enter 2nd number

     cin>>n2; //reads second number from user

     if(n2<min){ //if second number is less than min

          min=n2;      } //sets min to n2

     if(n2>max){ //if n2 is greater than max

          max = n2;      } //sets max to n2

     cout<<"Enter third number: ";  //prompts user to enter 3rd number

     cin>>n3; //reads third number from user

     if(n3<min){ //checks if n3 is greater than min

          min=n3;      } //sets n3 to min

     if(n3>max){ //checks if n3 is greater than max

          max = n3;      }      //sets max to n3

    cout<<"Enter fourth number: ";//prompts user to enter 4th number

     cin>>n4; //reads fourth number from user

     if(n4<min){  //if n4 is less than min

          min=n4;      }  //sets min to n4

     if(n4>max){  //if n4 is greater than max

          max = n4;      }  //sets max to n4

     cout<<"Enter fifth number: "; //prompts user to enter 5th number

     cin>>n5; //reads fifth number from user

     if(n5<min){  //if n5 is less than min

          min=n5;     }  //sets min to n5

     if(n5>max){  //if n5 is greater than max

          max = n5;      }  //sets max to n5

     cout<<"Enter sixth number: "; //prompts user to enter 6th number

     cin>>n6; //reads sixth number from user

     if(n6<min){ // if n6 is less than min

          min=n6;      }  //sets min to n6

     if(n6>max){  //if n6 is greater than max

          max = n6;      }  //sets max to n6

     cout<<"Enter seventh number: ";//prompts user to enter 7th number

     cin>>n7; //reads seventh number from user

     if(n7<min){  //if n7 is less than minimum number

          min=n7;      }  //assigns n7 to min

     if(n7>max){  //if n7 is greater than the maximum number

          max = n7;      }  //assigns n7 to max

     sum = n1+n2+n3+n4+n5+n6+n7;  //adds 7 numbers

     average = sum/7;  //computes average of 7 numbers

     cout<<"The average is: "<<fixed<<setprecision(3)<<average<<endl; //displays average value up to show 3 digits below decimal point using setprecision method of iomanip library

     cout<<"The maximum number is: "<<max<<endl; //displays maximum number of 7 numbers

     cout<<"The minimum number is: "<<min<<endl;  //displays miimum number of 7 numbers    

     return 0; }

Explanation:

The program is well explained in the comments attached to each statement of program. For example if

n1 = 3

n2 = 9

n3 = 7

n4 = 6

n5 = 2

n6 = 5

n7 = 4

When n1 is read using cin then this number is set to max and min as:

min = 9

max = 3

Now when n2 is read, the first if condition checks if n2 is less than min and second if condition checks if n2 is greater than max. As n2 = 9 so it is not less than min so this if condition is false and n2 is greater than max i.e. 3 so this condition is true. So 9 is assigned to max.

min = 9

max = 9

Now when n3 is read the values of min and max become:

min = 7

max = 9

Now when n4 is read the values of min and max become:

min = 6

max = 9

Now when n5 is read the values of min and max become:

min = 2

max = 9

Now when n6 is read the values of min and max become:

min = 2

max = 9

Now when n7 is read the values of min and max become:

min = 2

max = 9

Now the statement       sum = n1+n2+n3+n4+n5+n6+n7;

executes which becomes:

sum = 3 + 9 + 7 + 6 + 2 + 5 + 4

sum = 36.0

Next program control moves to statement:

average = sum/7;

this becomes

average = 36/7

5.142857

Since this is to be displayed up to 3 decimal places so average = 5.143

the complete output of the program is attached.

3 0
3 years ago
Complete the statement below with the correct term. A a0 network uses cables to connect the server to workstations and other equ
Korolek [52]

Answer:

<h3> A <u>wired</u> network uses cables to connect the server to workstations and other equipment. </h3><h3 />

Explanation:

A computer network is defined as a collection of computers connected together to share resources and for communication these resources could be internet, printer, or a file server.

A wired network is a type of network in which we use to connect to other devices or resources via a wired connection this wire could be a Ethernet, Fiber or Coaxial cable which work as a medium for the network. For network we use different devices like routers, switches and many more according to requirements.

<h3>I hope it will help you!</h3>
5 0
2 years ago
Other questions:
  • One of the difficult decisions a systems analyst has to make when it comes to software is whether to recommend making, buying, o
    8·1 answer
  • Katie created a web site that automatically scales to fit a cell phone. What kind of design did Katie use?
    12·2 answers
  • Maya enjoys connectedWith her friends and social media apps but one of her friends post a lot of stuff that my thinks it’s annoy
    14·1 answer
  • You create a storyboard at the _____ stage of web development
    15·2 answers
  • Do the police check your mobile device during police checks?
    10·2 answers
  • ​Lara is the chief editor of "Laughter and Life," an online magazine. Lara has assigned Jenny the task of redesigning the magazi
    5·1 answer
  • What is the condition for setting an alarm clock
    11·1 answer
  • Why it is not recommended to add sound effect on slide transition? Write at least two reasons.​
    6·1 answer
  • An IT security threat is anything that might cause serious harm to a computer system.
    9·1 answer
  • Why does Homework exist? Why is it so important?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!