answer.
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
Rasek [7]
2 years ago
15

Fair division Alice and Bob inherited a collection of paintings. However, they will receive it only if the collection can be div

ided into two parts of exactly equal price. (Otherwise, it will be donated to a local art museum.) Is the collection divisible into two exactly equal halves? We have to find the answer. The prices of the paintings are provided as an array of integers. For example: int prices [] = {10, 15, 12, 18, 19, 17, 13, 35, 33};
Mathematics
1 answer:
Mekhanik [1.2K]2 years ago
5 0

Answer:

The way to solve this question is find the length of the array and then divide it by 2. If the modulus is 0, the number is even, and the collection is divisible. Otherwise, if the modulus is 1, the number is odd, the collection is not divisible and will be donated to a local art museum.

Step-by-step explanation:

The way to solve this question is find the length of the array and then divide it by 2. If the modulus is 0, the number is even, and the collection is divisible. Otherwise, if the modulus is 1, the number is odd, the collection is not divisible and will be donated to a local art museum.

In this case:

int prices [] = {10, 15, 12, 18, 19, 17, 13, 35, 33};

The array has 9 elements, and 9%2 = 1, so it is not divisible into two equal parts.

You might be interested in
The inequality that will determine the number of months, x, that are required for the second phone to be less expensive is . The
ziro4ka [17]

<em>Question:</em>

<em>Sal is trying to determine which cell phone and service plan to buy for his mother. The first phone costs $100 and $55 per month for unlimited usage. The second phone costs $150 and $51 per month for unlimited usage. </em>

<em>The inequality that will determine the number of months, x, that are required for the second phone to be less expensive is . </em>

<em>The solution to the inequality is . </em>

<em>Sal’s mother would have to keep the second cell phone plan for at least months in order for it to be less expensive.</em>

Answer:

a. 150 + 51x < 100 + 55x

b. x > 12.5

c. At least 13 months

Step-by-step explanation:

Given

First Phone;

Cost = \$100

Additional = \$55 <em>(monthly)</em>

Second Phone;

Cost = \$150

<em />Additional = \$51<em> (monthly)</em>

<em></em>

Solving (a): The inequality

<em></em>

Represent the number of months with x

The first phone is expressed as:

100 + 55x

The second phone is expressed as:

150 + 51x

For the second to be less expensive that the first, the inequality is:

150 + 51x < 100 + 55x

Solving (b): Inequality Solution

150 + 51x < 100 + 55x

Collect Like Terms

51x-55x

-4x

Solve for x

x > -50/-4

x > 12.5

Solving (c): Interpret the solution in (b)

x > 12.5 implies 13, 14, 15....

Hence, She'll keep the second phone for a period of at least 13 months

4 0
1 year ago
Read 2 more answers
The prices of three t-shirts styles are $24, $30 and $36. the probability of choosing a $24 t-shirt is 1/6. the probability of c
Slav-nsk [51]

\text{Answer} : \text{The expected value of a t-shirt is \$31.}

Explanation:

Since we have given that

The prices of three t-shirts styles  i.e $24, $30, $36 with their probability is given by

\frac{1}{6}, \frac{1}{2},\frac{1}{3}

As we know that,

E(X)= \sum_{1}^{3}x_iP(x_i)

\text{where} x_i \text{ is the prices of t- shirts styles}

Now,

x_1= \$24 , x_2=\$30 , x_3=$36

and

P(x_1)=\frac{1}{6},P(x_2)=\frac{1}{2}, P(x_3)=\frac{1}{3}

So,

E(X)= 24\times \frac{1}{6}+30\times\frac{1}{2}+36\times \frac{1}{3}\\=4+15+12\\=31

So, the expected value of a t-shirt = $31.

4 0
2 years ago
What is the approximate radius of a 112 48 cd nucleus?
Kryger [21]
What is it comparing it to?

<span>2√3 = 1.26 times as large </span>
7 0
1 year ago
Read 2 more answers
A machine in a chocolate factory is set to squirt out a predetermined amount of molten chocolate. When the machine is set to x,
finlep [7]

Answer:

Sorry I need Points but I also need help

Step-by-step explanation:

4 0
2 years ago
A production line operates with a mean filling weight of 16 ounces per container. Overfilling or underfilling presents a serious
Dominik [7]

Answer:

Part1) z=\frac{16.32-16}{\frac{0.8}{\sqrt{30}}}=2.191    

p_v =2*P(Z>2.191)=0.0284

Readjustment is needed

Part 2)  z=\frac{15.82-16}{\frac{0.8}{\sqrt{30}}}=-1.232    

z=\frac{15.82-16}{\frac{0.8}{\sqrt{30}}}=-1.232    

p_v =2*P(Z

No readjustment is needed

Step-by-step explanation:

Data given and notation

Part 1    

\bar X=16.32 represent the sample mean    

\sigma=0.8 represent the population standard deviation    

n=30 sample size    

\mu_o =16 represent the value that we want to test    

\alpha=0.05 represent the significance level for the hypothesis test.    

z would represent the statistic (variable of interest)    

p_v represent the p value for the test (variable of interest)    

State the null and alternative hypotheses.    

We need to apply a two tailed test.    

What are H0 and Ha for this study?    

Null hypothesis:  \mu =16    

Alternative hypothesis :\mu \neq 16    

Compute the test statistic  

The statistic for this case is given by:    

z=\frac{\bar X-\mu_o}{\frac{\sigma}{\sqrt{n}}} (1)    

z-test: "Is used to compare group means. Is one of the most common tests and is used to determine if the mean is (higher, less or not equal) to an specified value".    

Calculate the statistic    

We can replace in formula (1) the info given like this:    

z=\frac{16.32-16}{\frac{0.8}{\sqrt{30}}}=2.191    

Give the appropriate conclusion for the test  

Since is a two tailed test the p value would be:    

p_v =2*P(Z>2.191)=0.0284

Using the value of \alpha =0.05 we see that pv and we have enough evidence to reject the null hypothesis.

Readjustment is needed

The rejection zone is given by:

(-\infty ;-1.96) , (1.96;\infty)    

Part 2

\bar X=15.82 represent the sample mean    

We can replace in formula (1) the info given like this:    

z=\frac{15.82-16}{\frac{0.8}{\sqrt{30}}}=-1.232    

Give the appropriate conclusion for the test  

Since is a two tailed test the p value would be:    

p_v =2*P(Z

Using the value of \alpha =0.05 we see that pv>\alpha and we have enough evidence to FAIL to reject the null hypothesis.

No readjustment is needed

The rejection zone is given by:

(-\infty ;-1.96) , (1.96;\infty)  

What action would you recommend ?

Review the procedure.

Do you reach the same conclusion ?

No we got different conclusions

5 0
2 years ago
Other questions:
  • Rounded 6,289,002 to the nearest 1,000,000
    5·1 answer
  • What is one of the zeros of the function shown in this graph?
    14·2 answers
  • A $1,000 face value bond is currently quoted at 100.8. the bond pays semiannual payments of $22.50 each and matures in six years
    15·1 answer
  • The area of the conference table in Mr. Nathan’s office must be no more than 175 ft2. If the length of the table is 18 ft more t
    12·1 answer
  • To find 36+29+14,Joshua rewrote the expression as 36+14+29 .what property did Joshua use to rewrite
    14·2 answers
  • PLEASE HELP ASAP, PRIORITIZED HELP WOULD BE APPRECIATED
    7·2 answers
  • Geometric abstraction is a form of artwork that uses geometric forms or shapes. Some twentieth-century American artists are know
    8·1 answer
  • Which of these expressions have negative values? Select all that apply.
    9·3 answers
  • A candidate scored 32 marks out of 80.find his percentage score​
    8·1 answer
  • The distribution of annual profit at a chain of stores was approximately normal with mean \mu = \$66{,}000μ=$66,000mu, equals, d
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!