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
skad [1K]
3 years ago
6

int myArray-11,3,-8,30,-2,0,5,7,-100,44); Write a loop statement to display the positive numbers each on a separate line like th

is: 30
Computers and Technology
1 answer:
dexar [7]3 years ago
4 0

Answer:

#include <iostream>

using namespace std;

int main()

{

 int myArray[] = {-11,3,-8,30,-2,0,5,7,-100,44};

 int n = sizeof(myArray)/sizeof(myArray[0]);

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

     if(myArray[i]>=0){

         cout<<myArray[i]<<endl;

     }

 }

  return 0;

}

Explanation:

First include the library iostream in c++ programming for using the input/output function.

Then, create the main function and define the array with the elements which contain both positive element as well negative elements.

after, use the for loop for traversing the array and inside the loop take the conditional statement for check if element in the array is positive.. if it true then print the element on the screen with separate line.

You might be interested in
Limitations of systems analysis and design​
Sonja [21]

Answer:

<h3 />

Explanation:

<h3>Although System analysis offers an extensive range of benefits it might also have some disadvantages. One of the main disadvantages which is mostly overlooked is the risk of too much analysing which may be costly and time consuming. It is therefore part of the analyst's job to find the right balance.</h3>
6 0
3 years ago
The Class of computers used in <br>scientific applications are called​
sashaice [31]

Answer:

sala de informática

Explanation:

salas de informática são utilizadas cada vez mais no mundo pelo aumento excedente de uso da tecnologia os estudantes precisam aprender conceitos básicos de informática e eletrônica

5 0
3 years ago
Which phrase is the best definition of sparklines in Excel 2016?
ddd [48]

Answer:

Option 2: a type of mini chart that users can insert into a worksheet

Explanation:

A graph or chart is used to show trends and changes in a dataset.

When we have to show trends or changes in MS Excel, there are a lot of options available. One of them is Sparklines. Sparklines are like mini charts that can be used to show data graphically.

Hence,

The correct answer is:

Option 2: a type of mini chart that users can insert into a worksheet

5 0
3 years ago
Read 2 more answers
The term ________ refers to the use of a single unifying device that handles media, internet, entertainment, and telephone needs
Alekssandra [29.7K]
The correct answer that would best complete the given statement above would be DIGITAL CONVERGENCE. The term Digital Convergence <span>refers to the use of a single unifying device that handles media, internet, entertainment, and telephone needs. Thanks for posting your question. Hope this helps. </span>
8 0
4 years ago
Outsourcing is an alternative systems building approach that may involve subscribing to an application service provider or hirin
Sati [7]

Answer:

True

Explanation:

Outsourcing, in a general term, means getting help from an external source. In software development context, outsourcing is an alternative systems building approach that may involve subscribing to an application service provider or hiring an external vendor to design and create software. In outsourcing, a business employs the service of a third-party application developer to design and create a software.

Some reasons why companies outsource a service are;

i. Shortage or lack of experienced developer in-house.

ii. To save time. Outsourcing can help reduce time taken to develop a software application because companies tend to outsource a developer that has designed similar application(s) in the past.

iii. To reduce cost. Outsourcing can help save cost considerably.

3 0
4 years ago
Other questions:
  • A. STOP: What is a technology habit you practice today that you now realize will not help you to be successful? Explain why it’s
    10·2 answers
  • Drag the tiles to the correct boxes to complete the pairs. Match the tools that you can use while solving a problem with their c
    6·2 answers
  • Write a program to find and print the sum of the first n cubes in the following four ways.
    12·1 answer
  • Which of the following agricultural clusters would require administrative and financial training? biotechnology agribusiness sys
    8·1 answer
  • 3. Run the C-LOOK algorithm (requests can only be serviced when the head is moving toward higher numbered tracks); the head is c
    11·1 answer
  • To create nested lists within each of these topical areas that would contain links to specific pages on the AllStyles website. I
    15·1 answer
  • If a website ends with .gov does it mean that its written by the government or?
    11·2 answers
  • Which of the following is not a data type in python Float, string, integer, decimal ​
    15·2 answers
  • Is there any quantum computer in India?​
    9·1 answer
  • Algorithm and flowchart to find the perimeter and area of square​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!