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
What is 14.7 x 11.361
Y_Kistochka [10]
167.0067
I hope this helps! 
4 0
2 years ago
Read 2 more answers
How to write 75 1/3 % as a fraction in simplest form
Snowcat [4.5K]
75 1/3 = 75.33

75.33% = 75.33/100 
              = 7533/10000
 
 not sure if it can be simplified more than this        
3 0
2 years ago
Read 2 more answers
Consider the function f left parenthesis x right parenthesis equals 3 x squared minus 5 x minus 2f(x)=3x2−5x−2 and complete part
GuDViN [60]

Given f(x)=3x²-5x-2

a) To find f(a+h) replace x with a+h in the given function. So,

f(a+h)=3(a+h)²-5(a+h)-2

=3(a²+2ah+h²)-5(a+h)-2 By using the formula (x+y)²=x²+2xy+y².

=3a²+6ah+3h²-5a-5h-2 By distributing property.

b) Similarly to find f(a) we need to replace x with a. So,

f(a)=3a²-5a-2

So, f(a+h)-f(h)= (3a²+6ah+3h²-5a-5h-2)-(3a²-5a-2)

=3a²+6ah+3h²-5a-5h-2-3a²+5a+2.

=6ah+3h^2-5h (All other terms has been cancel out)

8 0
2 years ago
If Adam orders a book from Store X, how much will he owe to the nearest cent? The tax rate only applies to the cost of
sasho [114]

Answer:

B) $19.72

Step-by-step explanation:

Sorry if I am late, hope you got a good grade:)

I got a 100 on the test for edge 2020

3 0
2 years ago
Read 2 more answers
1. Melissa went to lunch with two friends. She purchased 3 corn dogs, 2 fruit cups, and
umka2103 [35]

Answer:

14 is the answer.

Step-by-step explanation:

8 0
2 years ago
Other questions:
  • Jackson has a credit card with a 15% interest rate. His dad has a credit card with a 5% interest rate. If they both charge $1,00
    10·2 answers
  • The gross income of Abelina Bennett is $215 per week. Her deductions are: $15.16, FICA tax; $29.33, income tax; 2% state tax; 1%
    14·1 answer
  • Write g(x) = 40x + 4x2 in vertex form. Write the function in standard form. Factor a out of the first two terms. Form a perfect
    14·2 answers
  • ΔABC has three sides with these lengths: AB = 9, BC = 40, and CA = 41. What is the value of cos C?
    7·1 answer
  • Take a look at teen 1's initial polynomials for three layers of hills. Teen 1 has described what he thinks each modification to
    9·1 answer
  • For which segment lengths is AC¯¯¯¯¯ parallel to DE¯¯¯¯¯ ?
    13·2 answers
  • Mr. Schwartz builds toy cars. He begins the week with a supply of 85 wheels, and uses 4 wheels for each car he builds. Mr. Schwa
    6·1 answer
  • (1 point) The systolic blood pressure (given in millimeters) of males has an approximately normal distribution with a mean of 12
    5·1 answer
  • A normal distribution curve, where x = 70 and σ = 15, was created by a teacher using her students’ grades. What information abou
    6·2 answers
  • Jen is on the platform of her boat. She sights the top of a lighthouse at an angle of 30° as shown below. She knows that the hei
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!