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
nikklg [1K]
4 years ago
3

Write a program that first gets a list of integers from input (the first integer indicates the number of integers that follow).

That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers from the list that are within that range (inclusive of the bounds). For coding simplicity, follow each output integer by a space, even the last one. If the input is: then the output is: (the bounds are 0-50, so 51 and 200 are out of range and thus not output). To achieve the above, first read the list of integers into a vector. # include < iostream > # include < vector >
Computers and Technology
1 answer:
Tema [17]4 years ago
6 0

Answer:

The C program is given below. The code follows the instructions of the question. Follow both as you program for better understanding

Explanation:

#include <stdio.h>

int main()

{

   int n, min, max, i;

   int arr[20];

   

   scanf("%d",&n);

   

   for(i=0;i<n;i++){

       scanf("%d",&arr[i]);

   }

   

   scanf("%d",&min);

   scanf("%d",&max);

   

   for(i=0;i<n;i++){

       if(arr[i]>=min && arr[i]<=max){

           printf("%d ",arr[i]);

       }

   }

   

   return 0;

}

You might be interested in
What does it mean when #DIV/0! is displayed and a green triangle is added to the upper-left corner of a cell? A. The formula can
bazaltina [42]
The answer to the question is B.
4 0
4 years ago
Read 2 more answers
What is the difference between a hard drive and a tape drive? Hard drives use magnetic heads and are fast to write data; tape dr
liraira [26]

Answer:

A tape drive provides sequential access storage, unlike a hard disk drive, which provides direct access storage. A disk drive can move to any position on the disk in a few milliseconds, but a tape drive must physically wind tape between reels to read any one particular piece of data.

Explanation:

Architecturally tape drives are sequential storage, meaning that if you need to access some data at the end of the tape you needed to seek to the end and retrieve it. This can take seconds or minutes. Disks, OTOH are random access. Some hard drives use rotating media and movable heads , so the seek times are instantaneous , at least compared with tape drives. However, like tapes, there is a big advantage to using a rotating hard drive as sequential storage. It takes time, measured in milliseconds, for a head to move to another track. So traditionally, random access is much slower than sequential access.

SSDs have no internal moving parts so random access occurs in the same time frame as sequential access. Moreover, these drives usually have very high performance. For example, they can saturate a SATA data link, meaning that the SATA connection to the motherboard is now a bottleneck in disk access.

At one time tape drives were very popular. They were a low-cost alternative to using disks as backup. They were especially useful when IBM invented the Winchester “fixed” drive. This meant that the hard drive is fixed within its enclosure like they are today. Prior to this one could remove the drive pack and replace it. This was helpful when upgrading to a new version of the operating system as it was simple to replace the older drive pack should there be a problem.

Tape drives can be used in larger data centers, due to the fact that tape volumes can be removed and replaced so that the actual tape drive can backup many disk sets. Also the tape volumes can be stored off-site or in a fire-proof vault so this is valuable in a data recovery scenario.

4 0
3 years ago
From a neural network with 11 input variables, one hidden layer with three hidden units, and one output variable, how many param
e-lub [12.9K]

Answer:

40

Explanation:

Given that:

A neural network with 11 input variables possess;

one hidden layer with three hidden units; &

one output variable

For every input, a variable must go to every node.

Thus, we can calculate the weights of weight with respect to connections to input and hidden layer by using the formula:

= ( inputs + bias) × numbers of nodes

= (11 + 1 ) × 3

= 12 × 3

= 36 weights

Also, For one hidden layer (with 3 nodes) and one output

The entry result for every hidden node will go directly to the output

These results will have weights associated with them before computed in the output node.

Thus; using the formula

= (numbers of nodes + bais) output, we get;

= ( 3+ 1 ) × 1

= 4 weights

weights with respect to input and hidden layer total = 36

weights with respect to hidden and output layer total = 4

Finally, the sum of both weights is = 36 + 4

= 40

6 0
3 years ago
List of all the storage devices that you use for storing your school projects and assignments then state the reason you chose th
Dmitry [639]

Answer:

I use my oldest computer to store my information

Explanation:

I use my old computer to store things because it does not function properly such as taking a slow time loading or shutting down completely so I use it to store my data.

6 0
4 years ago
Read 2 more answers
Sing hard disk space to temporarily store data or instructions from ram is referred to as the?
Alecsey [184]

Using hard disk space to temporarily store data or instructions from RAM is referred to as <u>virtual memory</u>.

In the field of computers, virtual memory can be described as a method for managing the memory of a system and enabling more space for physical memory. Virtual memory has the advantage of freeing up space so that a shared memory does not need to be used.

Virtual memory causes the stored data in a system to be temporarily get stored in the disk storage from the random access memory (RAM).

The process of virtual memory makes secondary memory seem like a part of the main memory of a system. The amount of storage that can be done by the virtual memory depends on the storage capacity of the secondary memory of a system.

To learn more about virtual memory, click here:

brainly.com/question/13088640

#SPJ4

7 0
2 years ago
Other questions:
  • A Chief Information Officer (CIO) recently saw on the news that a significant security flaws exists with a specific version of a
    5·1 answer
  • One of the earliest uses of an electronic digital computer involved ________.
    8·1 answer
  • A broadcast network is one in which a transmission from any one attached station is received by all other attached stations over
    10·1 answer
  • Discuss how advertising on the Web affects search results and the ethical dilemmas associated with it.
    5·1 answer
  • An___ is a rectangular work area in the desk top that contains a program, text, files, it other data and tools.
    5·1 answer
  • For questions 1 – 3, use the following partial class definitions:
    11·1 answer
  • Attackers craft malicious probe packets and scan for services such as HTTP over SSL (HTTPS), SMTP over SSL (SMPTS) and IMAP over
    8·1 answer
  • Which protocol is used to send web pages from a web server to a web browser?
    13·1 answer
  • Web résumés allow you to include extra graphics and images that you would not include in a traditional résumé. please select the
    9·1 answer
  • Computer are most wonderful creation of 21st century how ?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!