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
MrRissso [65]
2 years ago
13

There are 22 gloves in a drawer: 5 pairs of red gloves, 4 pairs of yellow, and 2 pairs of green. You select the gloves in the da

rk and can check them only after a selection has been made. What is the smallest number of gloves you need to select to have at least one matching pair in the best case?
Engineering
1 answer:
antiseptic1488 [7]2 years ago
3 0

Answer:

Best case = 2 gloves

Given Information:

Red gloves = 5 pairs

Yellow gloves = 4 pairs

Green gloves = 2 pairs

smallest number of gloves you need to select to have at least one matching pair in the best case = ?

Explanation:

How many gloves do you need to make one matching pair?

2

Yes, you are right. 2 gloves makes a matching pair and it is the smallest number of gloves you need to select to have at least one matching pair.

But what about worst case?

lets say

you tried all 5 red gloves either all of them were left or right

then you tried 4 yellow gloves either all of them were left or right

then you tried 2 green gloves either all of them were left or right

Now all the left or right gloves are tried (5 + 4 + 2 = 11) and the 12th one will definitely be either matching red, yellow or green.

Therefore, in the worst case scenario, the smallest number of gloves you need to select to have at least one matching pair is 12.

You might be interested in
2.4: Add a method called setValue(), and the description of setValue is: public int setValue(long searchKey) In this method, the
Yanka [14]

Answer:

Below is java code that must be used for the given question:

// highArray.java

// demonstrates array class with high-level interface

// to run this program: C>java HighArrayApp

////////////////////////////////////////////////////////////////

class HighArray

  {

  private long[] a;                 // ref to array a

  private int nElems;               // number of data items

  //-----------------------------------------------------------

  public HighArray(int max)         // constructor

     {

     a = new long[max];                 // create the array

     nElems = 0;                        // no items yet

     }

  //-----------------------------------------------------------

  public setValue find(long searchKey)

     {                              // find specified value

     int j;

     for(j=0; j<nElems; j++)            // for each element,

        if(a[j] == searchKey)           // found item?

           break;                       // exit loop before end

     if(j == nElems)                    // gone to end?

        return false;                   // yes, can't find it

     else

        return true;                    // no, found it

     }  // end find()

  //-----------------------------------------------------------

  public void insert(long value)    // put element into array

     {

     a[nElems] = value;             // insert it

     nElems++;                      // increment size

     }

  //-----------------------------------------------------------

  public void display()             // displays array contents

     {

     for(int j=0; j<nElems; j++)       // for each element,

        System.out.print(a[j] + " ");  // display it

     System.out.println("");

     }

  //-----------------------------------------------------------

  }  // end class HighArray

////////////////////////////////////////////////////////////////

class HighArrayApp

  {

  public static void main(String[] args)

     {

     int maxSize = 100;            // array size

     HighArray arr;                // reference to array

     arr = new HighArray(maxSize); // create the array

     arr.insert(77);               // insert 10 items

     arr.insert(99);

     arr.insert(44);

     arr.insert(55);

     arr.insert(22);

     arr.insert(88);

     arr.insert(11);

     arr.insert(00);

     arr.insert(66);

     arr.insert(33);

     arr.display();                // display items

     int searchKey = 35;           // search for item

     if( arr.find(searchKey) )

        System.out.println("Found " + searchKey);

     else

        System.out.println("Can't find " + searchKey);

     }  // end main()

  }  // end class HighArrayApp

Explanation:

6 0
2 years ago
What is the measurement below?
Bess [88]

Explanation:

इसिसिसिसैस्स्स्स्स्स्स्स्स्स्सूस्सोस्स्स्स्स्स

8 0
2 years ago
The amplitudes of the displacement and acceleration of an unbalanced motor were measured to be 0.15 mm and 0.6*g, respectively.
ehidna [41]

Answer:

The speed of shaft is 1891.62 RPM.

Explanation:

given that

Amplitude A= 0.15 mm

Acceleration = 0.6 g

So

we can say that acceleration= 0.6 x 9.81

acceleration,a=5.88\ \frac{m}{s^2}

We know that

a=\omega ^2A

So now by putting the values

a=\omega ^2A

5.88=\omega ^2 \0.15\times 10^{-3}

\omega =198.09\ \frac{rad}{s}

We know that

  ω= 2πN/60

198.0=2πN/60

N=1891.62 RPM

So the speed of shaft is 1891.62 RPM.

                                               

       

4 0
2 years ago
By adding "-once", one can form the noun form of the word "organize" is that true or false?​
denpristay [2]

Answer:

<h2>False </h2>

Explanation:

The noun form of organize is just adding letter r

7 0
2 years ago
Read 2 more answers
Air enters the 1 m² inlet of an aircraft engine at 100 kPa and 20° C with a velocity of 180 m/s. Determine: a) The volumetric fl
Shkiper50 [21]

Answer:

a) 180 m³/s

b) 213.4 kg/s

Explanation:

A_1 = 1 m²

P_1 = 100 kPa

V_1 = 180 m/s

Flow rate

Q=A_1V_1\\\Rightarrow Q=1\times 180\\\Rightarrow Q=180\ m^3/s

Volumetric flow rate = 180 m³/s

Mass flow rate

\dot{m}=\rho Q\\\Rightarrow \dot m=\frac{P_1}{RT} Q\\\Rightarrow \dot m=\frac{100000}{287\times 293.15}\times 180\\\Rightarrow \dotm=213.94\ kg/s

Mass flow rate = 213.4 kg/s

3 0
3 years ago
Other questions:
  • Valves on steam lines are commonly encountered and you should know how they work. For most valves, the change in velocity of the
    10·1 answer
  • Its an opinion!!!!
    8·1 answer
  • A student proposes a complex design for a steam power plant with a high efficiency. The power plant has several turbines, pumps,
    6·1 answer
  • While having a discussion, Technician A says that you should never install undersized tires on a vehicle. The vehicle will be lo
    11·1 answer
  • A gas has an initial volume o.25m^3, and absolute pressure 100kPa. Its initial temperature is 290k. The gas is compressed into a
    11·1 answer
  • Estimate the luminosity of a 3 -solar-mass main-sequence star; of a 9 -solar-mass main-sequence star. Can you easily estimate th
    5·1 answer
  • A _______ contact allows current to flow when the switch's operator is not activated.?
    6·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
  • Tech B says that long-term fuel trims that are positive means that the PCM is leaning out the fuel mixture from the base pulse-w
    11·2 answers
  • 3. If nothing can ever be at absolute zero, why does the concept exist?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!