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

A homeowner finds that there is a 0.15 probability that a flashlight does not work when turned on. If she has three flashlights,

find the probability that at least one of them works when there is a power failure. Find the probability that the second flashlight works given that the first flashlight works.
Mathematics
1 answer:
prohojiy [21]3 years ago
6 0

Answer:

A) 0.386

B).0.325

Step-by-step explanation:

probability p will not work = 0.15

Q probability w5ill work = 0.85

Number of flashlight = 3

Probabilty of at least one=

1- probability of none

But probability of none= 3C0(p)^0(q)^3

= 1*(0.15)^0(0.85)^3

= 1*1*(0.614)

= 0.614

Probability of at least one=1-0.614

= 0.386

Probability of two flashlight work

= 3C1(0.15)^1(0.85)^2

= 3*(0.15)*(0.7225)

= 0.325

You might be interested in
X-y&lt;3<br> How I can solve this inequality?
Reil [10]
X-y<3
-x -x
______
-y<-x+3
_________
-1


The answer is y>x-3
4 0
3 years ago
Using linked lists or a resizing array; develop a weighted quick-union implementation that removes the restriction on needing th
balu736 [363]

Answer:

Step-by-step explanation:

package net.qiguang.algorithms.C1_Fundamentals.S5_CaseStudyUnionFind;

import java.util.Random;

/**

* 1.5.20 Dynamic growth.

* Using linked lists or a resizing array, develop a weighted quick-union implementation that

* removes the restriction on needing the number of objects ahead of time. Add a method newSite()

* to the API, which returns an int identifier

*/

public class Exercise_1_5_20 {

public static class WeightedQuickUnionUF {

private int[] parent; // parent[i] = parent of i

private int[] size; // size[i] = number of sites in subtree rooted at i

private int count; // number of components

int N; // number of items

public WeightedQuickUnionUF() {

N = 0;

count = 0;

parent = new int[4];

size = new int[4];

}

private void resize(int n) {

int[] parentCopy = new int[n];

int[] sizeCopy = new int[n];

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

parentCopy[i] = parent[i];

sizeCopy[i] = size[i];

}

parent = parentCopy;

size = sizeCopy;

}

public int newSite() {

N++;

if (N == parent.length) resize(N * 2);

parent[N - 1] = N - 1;

size[N - 1] = 1;

return N - 1;

}

public int count() {

return count;

}

public int find(int p) {

// Now with path compression

validate(p);

int root = p;

while (root != parent[root]) {

root = parent[root];

}

while (p != root) {

int next = parent[p];

parent[p] = root;

p = next;

}

return p;

}

// validate that p is a valid index

private void validate(int p) {

if (p < 0 || p >= N) {

throw new IndexOutOfBoundsException("index " + p + " is not between 0 and " + (N - 1));

}

}

public boolean connected(int p, int q) {

return find(p) == find(q);

}

public void union(int p, int q) {

int rootP = find(p);

int rootQ = find(q);

if (rootP == rootQ) {

return;

}

// make smaller root point to larger one

if (size[rootP] < size[rootQ]) {

parent[rootP] = rootQ;

size[rootQ] += size[rootP];

} else {

parent[rootQ] = rootP;

size[rootP] += size[rootQ];

}

count--;

}

}

public static void main(String[] args) {

WeightedQuickUnionUF uf = new WeightedQuickUnionUF();

Random r = new Random();

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

System.out.printf("\n%2d", uf.newSite());

int p = r.nextInt(i+1);

int q = r.nextInt(i+1);

if (uf.connected(p, q)) continue;

uf.union(p, q);

System.out.printf("%5d-%d", p, q);

uf.union(r.nextInt(i+1), r.nextInt(i+1));

}

}

}

8 0
3 years ago
Which problem could be solved with the expression (5 + 3) + 2?
ANTONII [103]

Answer: the answer is a

Step-by-step explanation: i did all the work that i could do on my paper

7 0
3 years ago
Of the songs in Brianna's music library, 1/3 are rock songs. Of the rock songs, 7/10 feature a guitar solo. What fraction of the
Marat540 [252]

Answer:

7/30 of her music library

Step-by-step explanation:

We are looking for 7/10 of 1/3. In this case this "of" means we will multiply the two fractions. To multiply fractions, we multiply

top × top

and

bottom × bottom

1/3 × 7/10

is 1×7 on top, and

3×10 on the bottom.

= (1×7)/(3×10)

= 7/30

7/30 cannot be simplified, so that is the answer.

6 0
2 years ago
PLEASE HELP WITH THESE 4 QUESTIONS IF CORRECT ILL MARK BRAINLIEST
Serjik [45]

Answer:

the first box maybe

Step-by-step explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • 3 Fractions that are equivalent to 1/2
    9·1 answer
  • A publisher needs to send many books to a local book retailer and will send the books in a combination of small and large boxes.
    10·1 answer
  • terry sees this offer. refurbished phone 35%off now only £78. how much was the phone before the discountes price?
    11·1 answer
  • What is the product?
    5·1 answer
  • Could someone explain to me how to work this out
    14·1 answer
  • The box plots display the same data for the number of crackers in each snack bag, but one includes the outlier in the data and t
    7·2 answers
  • What word describes the equal shares of this shape
    13·2 answers
  • 2. Find the mode of the following data:
    13·2 answers
  • I NEED HELP PLEASE
    10·1 answer
  • Exercise #1: A rectangular, right prism (or box) has a length of 8 inches, a width of 4 inches, and a height of 5
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!