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
creativ13 [48]
3 years ago
7

R7.1 Carry out the following tasks with an array:

Computers and Technology
1 answer:
Andru [333]3 years ago
6 0

Answer:

Following are the program in the C++ Programming Language.

//set header file or namespace

#include <iostream>

using namespace std;

//define main function

int main() {

//set integer type array with indexing 10

 int a[10];

//set integer type variable to 1

 int i=1;

//set element in 1st index

 a[0]=17;

//set element in last index

 a[9]=29;

//set while loop for the remaining elements

 while(i<9)

 {

//set -1 in the remaining elements

   a[i]=-1;

   i++;

 }

//set for loop to print array

 for ( int j = 0; j < 10; j++ ) {

   cout << a[j]<<endl;

 }

}

<u>Output:</u>

17

-1

-1

-1

-1

-1

-1

-1

-1

29

Explanation:

In the following program, we define the main function "main()" and inside it.

  • Set an integer type array element "a[]" with index value 10.
  • Set integer data type variable "i" initialize to 1.
  • Set elements in the first and last place in the array.
  • Set the while loop to initialize elements for the remaining place.
  • Set the for loop to print the array elements.
You might be interested in
Gennie has just gotten her first smartphone with a touch screen. Mia is giving her a lesson on how to use the touch screen.
Helga [31]

Answer: D Stretch

Explanation:

Stretching is the process of changing the screen resolution of a phone or computer monitor so as to give a better view of it.

6 0
3 years ago
While adding information to the employee information database, Neil's computer crashed, and the entire database was erased. Whic
Varvara68 [4.7K]

Answer:

logic bombs

Explanation:

logic bombs -

It consists of certain coding , which is put into the software and will perform certain malicious function at the very correct time, is known as logic bomb ,

they are also known as time bomb.

It is a time of virus , but gets activated as soon as all conditions are met , which is coded in to the software.

Hence , from the given scenario of the question,

The correct term is logic bomb.

6 0
3 years ago
A low-level language has a low level of ___________ because it includes commands specific to a particular cpu or microprocessor
Studentka2010 [4]
Command Specifics to a cpu or a microprocessor it is code <span />
7 0
3 years ago
A dual looped Fibre Channel drive system is theoretically capable of transferring data at a rate of _____.
Anna007 [38]

Answer:200 MBps

Explanation: Fibre channel are those channel that work with the data transfer protocol at the rate of high speed.They work on the connection that are based on the links and loops or share any other form of point to point connection.

It is measured that theoretically the speed of the dual looped FC is supposed to be 200 MBps rate having the two loop form connection.

4 0
3 years ago
The mean of a collection of data is located at the​ ______ of a distribution of data.
Brilliant_brown [7]

Answer:

'balancing point' is your answer

<em><u>Please</u></em><em><u> </u></em><em><u>mark as brilliant </u></em>

7 0
3 years ago
Other questions:
  • . Suppose: x = (1111 1111 1111 1111 1111 1111 1111 1100)2 y = (0011 1011 1001 1010 1000 1010 0000 0000)2 a. Is x bigger than y i
    10·1 answer
  • Which option will you use to expose your presentation to the audience?
    8·2 answers
  • A computer company has $3840000 in research and development costs. Before accounting for these costs, the net income of the comp
    5·1 answer
  • Which of the following terms best describes the process that occurs when two or more parties decide how to allocate scarce resou
    12·1 answer
  • Who is involved in helping shape the emotional impact of a film? (Select all that apply.)
    8·2 answers
  • _____ is a major factor in the widespread use of global information systems
    7·1 answer
  • What will the following loop display? 0 1 2 3 4 5 0 1 2 3 4 0 1 2 3 4 The loop will display numbers starting at 0, for infinity.
    8·1 answer
  • In excel what is the biggest disadvantage of copying a worksheet into another workbook?
    15·1 answer
  • How many characters should a strong password have? four six eight ten
    10·2 answers
  • You are the network administrator for a small company that implements NAT to access the internet. However, you recently acquired
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!