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
Dahasolnce [82]
3 years ago
7

Create a class to represent light bulbs

Computers and Technology
1 answer:
Leya [2.2K]3 years ago
6 0

Answer:

umm

Explanation:

You might be interested in
CLICK ME IF U DARE hehehe
amid [387]

Answer:

Display?

Explanation:

I am not sure that's the answer so....

6 0
3 years ago
Read 2 more answers
Write the definition of a function reverse, whose first parameter is an array of integers and whose second parameter is the numb
GrogVix [38]

Answer:

The c++ function for reversing an array is given. The function is declared void since it returns no value.

void reverse( int arr[], int len )

{

   int temp[len];

   for( int k = 0; k < len; k++ )

   {

       temp[k] = arr[k];

   }

   for( int k = 0, j = len-1; k < len, j>= 0; k++, j-- )

   {

           arr[k] = temp[j];

    }

}

Explanation:

The reverse function uses another array to reverse the elements of the original array.

An integer array is declared, temp[len], having the same length as the input array.

int temp[len];

To begin with, the elements of the input array are copied in the temp array.

for(int k = 0; k < len; k++ )

{

       temp[k] = arr[k];

}

Next, the elements of the input array are given new value.

The temp array, in reverse order, is copied into the input array.

for( int k = 0, j = len-1; k < len, j>= 0; k++, j-- )

{

           arr[k] = temp[j];

}

The above for loop makes use of two variables simultaneously.

While the array, arr is proceeding from first element to the next, the array temp begins with the last element and goes down to the previous element.

Now, the input array, arr, contains the elements in reverse order.

The complete program is given.

#include <iostream>

using namespace std;  

 

void reverse( int arr[], int len );

void reverse( int arr[], int len )

{

   int temp[len];

   

   for(int k = 0; k < len; k++ )

   {

       temp[k] = arr[k];

   }

   

   for( int k = 0, j = len-1; k < len, j>= 0; k++, j-- )

   {

           arr[k] = temp[j];

   }

   

}

int main()  

{

   int len = 5;    

   int arri[len];    

   for( int l = 0; l < len; l++ )

   {

       arri[l] = l;

   }

   

   reverse( arri, len );    

   return 0;

}

8 0
3 years ago
Information management should supply information in the form of meaningful images rather than raw data, which requires that we h
Reika [66]

Answer:

Filtering.

Explanation:

Filtering is the best option.

4 0
4 years ago
The brainly home page uses about 112% of my cpu. (On chromebook) any ideas to help increase performance?
Romashka-Z-Leto [24]
If you pin the tab it dramatically lowers usage
3 0
4 years ago
Read 2 more answers
In which drawer can you set certain lights to light up on your micro:bit?
zheka24 [161]

Answer:

In which drawer can yu set certain lights t light up n yur micr:bit?

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • if there are several web pages that you visit regularly what can you do to make accessing them more efficient?
    13·1 answer
  • What sends massive amounts of email to a specific person or system that can cause that user's server to stop functioning? mail b
    6·1 answer
  • State all the generations of computers.
    10·2 answers
  • Does anyone know the answer for this? I’m extremely confused.
    8·2 answers
  • Short notes on Supply chain Management System (SCMS)
    12·1 answer
  • Describe how a cell’s content and format attributes are related.
    13·2 answers
  • EASY What does the Backspace key do?
    6·1 answer
  • A Development team begins work on a new software application and decides to involve the client’s IT experts to ensure that secur
    12·1 answer
  • A statement that starts with a # symbol is called
    8·1 answer
  • What are benefits of AI
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!