A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies. write a program that prompts the user to enter the total number of cookies, the number of cookies in a box, and the number of cookie boxes in a container. the program then outputs the number of boxes and the number of containers to ship the cookies. note that each box must contain the specified number of cookies, and each container must contain the specified number of boxes. if the last box of cookies contains less than the number of specified cookies, you can discard it and output the number of leftover cookies. similarly, if the last container contains less than the number of specified boxes, you can discard it and output the number of leftover boxes.

Answers

Answer 1
Final answer:

The provided math problem involves writing a program that helps to calculate the number of cookie boxes and containers required to ship a specific number of cookies considering the capacity of each item. If there are leftover cookies that do not fill a box or if there are leftover boxes that do not fill a container, these are also calculated.

Explanation:

This is a programming problem which requires logic to calculate the number of boxes and containers needed to ship a given number of cookies. Assume that 'total_cookies', 'cookies_per_box', and 'boxes_per_container' are user inputs. Initially, you should calculate the total boxes by 'total_boxes = total_cookies / cookies_per_box'. The floored division operator is applied to discard the last box if it contains less than the specified number of cookies. Then, calculate the total containers with 'total_containers = total_boxes / boxes_per_container'. Again, you use the floored division operator to discard the last container if it contains less than the specified number of boxes. Lastly, calculate the leftover cookies and boxes, which is done by applying the modulus operator. 'leftover_cookies = total_cookies % cookies_per_box' and 'leftover_boxes = total_boxes % boxes_per_container'.

The logic of the given program focuses on the calculation of boxes and containers needed to ship the given number of cookies keeping in consideration the capacity of each box and container. Also, the algorithm calculates the leftover cookies and boxes, if not enough to fill a box or container fully.

Learn more about Programming Logic here:

https://brainly.com/question/34705188

#SPJ12


Related Questions

If a snail can move 3/10 of a meter every 1/12 hour, what is the speed of the snail, in meters per hour?

1/4

5/18

1 1/2

3 3/5

Answers

First you have to find out what 1/12 of an hour is as well as what 3/10 of a meter is.  


60 divided by 12 = 5


5 = 1/12 of an hour


1000 cm divided by 10 is 100 cm


3/10 so 100 + 100 + 100 = 300 cm or 3/10 of a meter


A snail can go 300 centimeters in 5 minutes.


By seeing this I can estimate my answer and that would be 1 1/2 meters in one hour



Hpe I helped


Brainliest if satisfied



would mean a lot



I take K12 by the way






The speed of the snail, in meters per hour 3 3/5 meters/hour.

Given that, a snail can move 3/10 of a meter every 1/12 hour.

We need to find the speed of the snail, in meters per hour.

What is speed?

Speed tells us how fast something or someone is travelling. You can find the average speed of an object if you know the distance travelled and the time it took. The formula for speed is Speed = Distance ÷ Time.

Now, speed = 3/10 ÷ 1/12

=3/10 × 12/1

=18/5

=3 3/5

Therefore, the speed of the snail, in meters per hour 3 3/5 meters/hour.

To learn more about the speed visit:

https://brainly.com/question/7359669.

#SPJ2

How to do this I don’t understand what I’m doing wrong

Answers

check the picture below.

on 3), we don't know how long are the segments GA and AC, therefore, we can't quite say that A is right in the middle of GC.

however, notice on DH, the units are right there on the grid, and you can count them.

in february,Robbins and Myers,Inc.executed a 2-for-1 split.janine had 470 shares before the spilit.each share was worth $69.48. A.how many shares did she hold after the split? B.what was the post-split price per share? C.show that the split was a monetary non-event for janine?

Answers

After the split, Janine had 960 share worth $34.74. Since they doubled the amount of share, but decrease the amount of each share, Jane didn't gain or lose any money during the event.
Final answer:

Janine held 940 shares after the split. The post-split price per share was $34.74. The split was a monetary non-event as the total value of Janine's shares remained the same.

Explanation:

A 2-for-1 split means that for every one share of stock owned, an investor receives two shares in return. In this case, Janine had 470 shares before the split. After the split, she would have 470 x 2 = 940 shares.

The pre-split price per share was $69.48. Since the split was 2-for-1, the post-split price per share would be $69.48 / 2 = $34.74.

To show that the split was a monetary non-event for Janine, we can calculate the total value of her shares before and after the split. Before the split, Janine's shares were worth 470 x $69.48 = $32,621.60. After the split, her 940 shares would be worth 940 x $34.74 = $32,621.60. Therefore, the total value of her shares remained the same.

Learn more about Stock Split here:

https://brainly.com/question/33008145

#SPJ3

Mary bought 20 bowls and plates for $96. each bowl cost $4.50 and each plate cost $1.50 more than a bowl. she bought more bowls than plates. how many bowls and how many plates did she buy?

Answers

This is a system of equation type of problem.

Let x represent the bowls and y represent the plates.


Your equations will be:

4.50x + 6y = 96

x + y = 20

We can solve this problem by either the substitution method or elimination method.

Substitution method:

1) Solve for x.

x + y = 20

x = 20 - y

2) Substitute x with 20 - y in the other equation.

4.50x + 6y = 96

4.50(20 - y) + 6y = 96

3) Distribute the outside term through the terms inside the parenthesis and simplify the rest of the equation.

90 - 4.50y + 6y = 96

90 + 1.50y = 96

1.50y = 6

y = 4

4) Now that we know the numerical value of y, solve for the numerical value of x by substituting once more.

a) x + 4 = 20

x = 16

b) 4.50x + 6(4) = 96

4.50x + 24 = 96

4.50x = 72

x = 16

*The solution is that:

Mary bought 16 bowls and 4 plates.

Before a sale, an item’s price was $38.00. After the sale discount, the price became $32.30. What was the percent of the sale discount

Answers

Answer:

15%

Step-by-step explanation:

Before a sale, an item’s price was $38.00.

Original price, p = $38.00

After the sale discount, the price became $32.30.

After discount price, q = $32.30

Difference of sale = 38.00 - 32.30

                            = $5.70

% of sale distance [tex]=\dfrac{difference}{original price}\times 100[/tex]

                              [tex]=\dfrac{5.70}{38.00}\times 100[/tex]

                              [tex]=15\%[/tex]

Hence, The sale discount is 15%

Before a sale, an item’s price was $38.00. After the sale discount, the price became $32.30. The percentage of the sale discount is 15%.

What is the percentage?

A percentage is a minimum number or ratio that is measured by a fraction of 100.

Before a sale, an item’s price was $38.00.

Original price, p = $38.00

After the sale discount, the price became $32.30.

After discount price, q = $32.30

Difference of sale = 38.00 - 32.30

                           = $5.70

The percent of the sale discount = difference/ original  x 100

                                                      = 5.70 / 38.00  x 100

                                                      = 15%

Thus, The percentage of the sale discount is 15%.

Learn more about percentages;

https://brainly.com/question/13450942

                             

#SPJ3

                             

In the xy-plane, if line k has negative slope and passes through the point (−5,r), is the x-intercept of line k positive?

Answers

We Need more info please us at brainly would like you to provide more information so we can answer your question right away thank you have a goodnight.

PLEASE HELP ME!!!! WORTH 10 POINTS!!
Write the point-slope form of the given line that passes through the points (-4, -1) and (3, -3). Identify (x1, y1) as (-4, -1).Include your work in your final answer. Type your answer in the box provided or use the upload option to submit your solution.

Answers

(-4, -1) and (3, -3)

slope m = (-3 + 1) /(3 + 4) = -2/7

y - y1 = m(x - x1)
(x1, y1) as (-4, -1)

equation
y + 1 = -2/7(x +4)

Answer:

[tex]y-(-1)=-\frac{2}{7}(x-(-4))[/tex]

Step-by-step explanation:

We know that the line passes through (-4,-1) and (3,-3), where [tex](x_{1} ,y_{1} )[/tex] is [tex](-4,-1)[/tex] and [tex](x_{2} ,y_{2} )[/tex] is [tex](3,-3)[/tex].

First, we need to find the slope with the formula

[tex]m=\frac{y_{2}-y_{1} }{x_{2}-x_{1} }[/tex]

Replacing given points

[tex]m=\frac{-3-(-1)}{3-(-4)}=\frac{-3+1}{3+4}=\frac{-2}{7}[/tex]

Then, we use the slope, one point and the slope-point form

[tex]y-y_{1} =m(x-x_{1} )\\y-(-1)=-\frac{2}{7}(x-(-4))\\ y+1=-\frac{2}{7}x+\frac{8}{7} \\y=-\frac{2}{7}x+\frac{8}{7}-1\\y=-\frac{2}{7}x+\frac{8-7}{7} \\y=-\frac{2}{7}x+\frac{1}{7}[/tex]

The slope-intercept form is

[tex]y=-\frac{2}{7}x+\frac{1}{7}[/tex]

The point-slope form is

[tex]y-(-1)=-\frac{2}{7}(x-(-4))[/tex]

What is the expression for "the difference between five times a number and twice that number"? 5(2 - n) 5n - 2n 2n - 5n?

Answers

The answer is 5n - 2n
Because 5 times n is 5n and 2 times n is 2n

The ratio of men to women working for a company is 5 to 8 . if there are 104 women working for the company, what is the total number of employees?

Answers

The ration for women to men is: 

5:8 
104:x 

8x104=5x
832=5x 
832/5=x 
166.4 =x 

However, you cannot have 0.4 of a person, so the number of men is 166. 

Total number of employees are: 166+104=270 

Hope I helped :) 

The original price of the DVD is nine dollars the sale price is 80% of the price what is the sale price of the DVD?

Answers

Let's rewrite the information then figure out the answer. 

DVD: $9.00 originally but on sale with an 80% discount. 
80%=0.80
9.00(0.80) = $7.20
$9.00 - $7.20 = $1.80

Thus, the sales price is: $1.80

multiply $9 by 80%

80% = 0.80

9 * 0.8 = 7.20

 subtract that from original price

9 - 7.20 = 1.80

 Sale price is $1.80

Please help and show all work.

Answers

( make sure you re word these some just in case)
1. Since r and t are each perpendicular to s, angles 1 and 5 are right angles and therefore are congruent corresponding angles. Since two lines cut by a transversal are parallel if the corresponding angles are congruent, lines r and t are parallel.( make sure you re word this some)
2. No, they will not be parallel because in order to form a 90 degree angle on each corner (to allow the sides to be parallel to each other), the angles have to add up to 90 degrees. When you add 37 degrees to 50 degrees, you are left with 87 degrees, which means that they will ever so slightly tilt away from each other, therefore not being parallel.

What is the percent increase of 2826 to 3324?

Answers

Divide 3324 by 2826.
You will get the decimal 1.17622 etc.
round to the nearest thousandths place 1.18%

The answer is provided in the image attached.

Have a great day!

What is the answer? Need help right away!!!!

Answers

1/16 times 48 would equal 3. 9+3=12
9 + 1/16= 9 1/16
9 1/16 × 48= 432 1/16 or 432.16

Baby Isbel plays with blocks. Each block is 3.7 inches tall. She has a collection of 41 blocks. If she could stack all the blocks on top of each other, how many inches tall would her tower of blocks be?

Answers

3.7×41=151.7 inches tall in total

What are the center and radius of the circle with equation (x + 8)^2 + (y + 3)^2 = 121?

Answers

6 hould be the answer

2. How are Angle 3 and Angle 7 related?
1 point

Corresponding angles
Vertical angles
Same Side Interior angles
Alternate exterior angles

Answers

These are corresponding angles.

When two lines are crossed by another line, the angles in matching corners are called corresponding angles.

The revenue from selling x shirts is r(x) = 15x.

The cost of buying x shirts is c(x) = 7x + 20.

The profit from selling x shirts is p(x) = r(x) – c(x).

What is p(x)?

A. p(x) = 22x – 20
B. p(x) = 22x + 20
C. p(x) = 8x – 20
D. p(x) = 8x + 20

Answers

Hope this helps
The answer would be...
C. p(x) = 8x-20

The profit function, p(x) is the difference between the revenue and cost function of the shirt sales, Hence, the profit function is 8x - 20

Given the Parameters :

Revenue function, R(x) = 15x

Cost function, C(x) = 7x + 20

The profit function can be expressed thus ::

Revenue function - Cost Function

P(x) = R(x) - C(x)

P(x) = 15x - (7x + 20)

P(x) = 15x - 7x - 20

P(x) = 8x - 20

Therefore, the profit function is 8x - 20.

Learn more : https://brainly.com/question/8283882

Joanne deposits $4,300 into a one-year CD at a rate of 4.3%, compounded daily. How much interest does she earn?

Answers

This is a compund interest problem which means that the formula to use is
Final Amount = Initial investment (1+(rate/100)/amount of times it is compounded per year)^amount of times compounded per year*amount of years

A = P (1+R/N)^NT

this means that Joanne's final amount is $4488.92 or that she earned $188.92 in interest

In this case, Joanne's interest earned by depositing $4,300 into a one-year CD at a rate of 4.3%, compounded daily can be calculated by plugging the values into the formula.

To calculate the interest earned, use the formula for compound interest: I = P(1 + r/n)^nt - P, where I is the interest earned, P is the principal amount, r is the interest rate, n is the number of times the interest is compounded per time period, and t is the number of time periods.

Substitute the values into the formula to find the interest earned: I = $4,300(1 + 0.043/365)^(365*1) - $4,300

Given: p: 2x = 16 q: 3x – 4 = 20 Which is the converse of p → q?

Answers

Answer:

If q:3x-4=20 then p:2x=16

Step-by-step explanation:

We are given that two statement p and q

p:2x=16

q:3x-4=20

We have to find the converse of given statements.

Converse:

If p then q.

Converse statement

If q then p.

[tex]q\implies p[/tex]

Therefore, definition of converse

q: 3x-4=20

p: 2x=16

If q:3x-4=20 then p:2x=16

Charlene puts together two isosceles triangles so that they share a base, creating a kite. The legs of the triangles are 10 inches and 17 inches, respectively. If the length of the base for both triangles is 16 inches long, what is the length of the kite’s other diagonal?

Answers

Answer:

21 inches is right i just took the e2020 assignment

Step-by-step explanation:

HELP ME PLZ PPL!!!!
Solve for x: |x − 2| + 10 = 12 (1 point)


x = −20 and x = 4

x = −4 and x = 0

No solution

x = 0 and x = 4

Answers

The answer is D. x=0 and x=4 because a way to determine the answer is by inputting all the choices for x they have and if any of them has the answer then choose that one

Rolando had $200,000 in a CD at Big Bucks Bank, which just failed. If the FDIC insurance the bank, how much will Rolando get back?

$0

$250,000

$120,000

$200,000

Answers

I think the answer would be $120,000. I'm not sure though.

Find the measure of Angle 1

Answers

AB || DC
so
m<1 = m<66

Answer:

66º

Step-by-step explanation:

From the picture we know that AB║CD. Therefore, the line BD is a transversal line between two parallels.

We know that in these cases, the alternate interior angles are the same.

In the picture, angle 1 and the angle that measures 66º are alternate interior angles. Therefore, angle 1 measures 66º as well.

∠1 = 66º

What are the solutions of the equation x4 – 5x2 – 14 = 0? Use factoring to solve.

Answers

(x2 - ) (x2 + ) = 0
(x2 - 7) (x2 + 2) = 0
(x2 - 7) = 0 and (x2 + 2) = 0
x2 = 7 and x2 = - 2
√x2 = √7 and √x2 = √-2
x = √7 and x = √-2 --> it doesn't exist

Answer:  The required solutions of the given equation are

[tex]x=\pm\sqrt7,~\pm\sqrt2i.[/tex]

Step-by-step explanation:  We are given to find the solutions of the following bi-quadratic equation :

[tex]x^4-5x^2-14=0~~~~~~~~~~~~~~~~~~~~~~~~~~~(i)[/tex]

Let us consider that

[tex]x^2=y~~~~~\Rightarrow x^4=y^2.[/tex]

So, equation (i) becomes

[tex]y^2-5y-14=0,[/tex]

which is a quadratic equation in the variable y. The above equation in variable y can be solved using factorization as follows :

[tex]y^2-5y-14=0\\\\\Rightarrow y^2-7y+2y-14=0\\\\\Rightarrow y(y-7)+2(y-7)=0\\\\\Rightarrow (y-7)(y+2)=0\\\\\Rightarrow y-7=0,~~~y+2=0\\\\\Rightarrow y=7,-2.[/tex]

Therefore, we get

[tex]x^2=7\\\\\Rightarrow x=\pm\sqrt7[/tex]

and

[tex]x^2=-2\\\\\Rightarrow x=\pm\sqrt{-2}\\\\\Rightarrow x=\pm\sqrt2i,~~~~~~~~~~~~~[\textup{where }i=\sqrt{-1}][/tex]

Thus, the required solutions of the given equation are

[tex]x=\pm\sqrt7,~\pm\sqrt2i.[/tex]

A fair coin is tossed 4 times. find the probability of obtaining exactly 2 heads

Answers

50% 
i think
tell me if i got it right...

Final answer:

The probability of obtaining exactly 2 heads when a fair coin is tossed 4 times is 3/8.

Explanation:

To find the probability of obtaining exactly 2 heads when a fair coin is tossed 4 times, we need to determine the number of ways to get 2 heads out of 4 tosses and divide it by the total number of possible outcomes.

Step 1: Determine the number of ways to get exactly 2 heads.

There are four coin tosses, and we want 2 of them to be heads. We can choose the positions for the 2 heads out of the 4 tosses in 4C2 = 6 ways.

Step 2: Determine the total number of possible outcomes.

Each coin toss has two possible outcomes: heads or tails. Since there are 4 tosses, the total number of outcomes is 24 = 16.

Step 3: Calculate the probability.

The probability of obtaining exactly 2 heads is 6/16 = 3/8.

20 less than 5 times a number

Answers

the equation for this is 5x-20
Salutations!

Let the number be [tex]x[/tex]

The expression would be [tex]5x - 20 [/tex]

Hope this helps! 

Have a great day!

Which statement best describes the effect of replacing the function f(x) = 2x + 2 with the function g(x) = 2x - 3?


The graph shifts 1 unit left.


The graph shifts 5 units left.


The graph shifts 5 units right.


The graph shifts 1 unit right.

Answers

The 2x is common in both functions.
However, if you looked at g(x), you will find that g(x) has decreased from +2 to -3 with a decrease of 5 units.
This means that any value put in g(x) will be 5 units less than its correspondent in f(x).
Therefore, your graph will be shifted 5 units right

Matter must have two physical properties: 1. have mass, and 2._____.

Answers

Needs to be able to take up space (mass) and must be able to be measured.

PLease Help!
A number x is no more than 9 units away from 8. Write and solve an absolute-value inequality to show the range of possible values of x.
1. |x + 9| ≤ 8
−17 ≤ x ≤ −1

2. |x + 8| ≤ 9
−17 ≤ x ≤ 1

3. |x − 9| ≤ 8
1 ≤ x ≤ 17

4. |x − 8| ≤ 9
−1 ≤ x ≤ 17

Answers

you need to work backwards
if it is no more than 9 units away from 8
thus x must be 8-9<x<8+9 solving -1<x<17
so the answer is 4.

3.4−2.8d+2.8d−1.3 Combine like terms to simplify the expression

Answers

2.1 that's the
answer 
Other Questions
33.33333333333333 in a fraction What does the term white flight mean? After learning that her new college roommate had experienced several episodes of depression during her high school years, erin incorrectly perceived her roommate's laughter as artificial and phony. this best illustrates the impact of Latitude and longitude coordinates are used to describe a(n) _______ location. You pose a question to christina. "would you just rattle off all the ways that you can think of that you feel around me, and after listing each of them, i'd like you to add and you make me feel that way!'" in gestalt terms, you are _____. The existence of Pangea is supported by evidence that similar fossils appear on differen continents. How does this observation support the existence of Pangea? 1) It shows that fossils can be relocated. 2) It shows that organisms can migrate across oceans. 3) It shows that similar animals can develop in different climates. 4) It shows that the continents used to be closer together. Which is most necessary for specialization among producers to take place? What can a paleontologist learn from fossils Draw a number line to represent 4 + (-7) = -3? Determine whether the given function is linear. if the function is linear, express the function in the form f(x) Which equation represents a line with a greater slope and lesser y intercept than the line shown? a neighborhood garden that is 2/3 of an acre is to be divided 4 equal-size sections What was the main goal of realism Which molecule forms the bulk of a cell membrane? a phospholipid b glucose c dna d protein submit answer? The hypotenuse of a right triangle is 8 feet less than three times the shorter leg and the longer leg is 8 feet more than twice the shorter leg. find the lengths of the three sides of the triangle. Find one terminating decimal and one repeating decimal between -1/2 and -1/3 Explain why this statement isnt completely accurate. How many European nations made explorations to North and South America? goldilocks chose the chair that was neither big or small what's the conjunctions John runs 4 miles in 30 minutes. at the same rate, how many miles would he run in 48 minutes? Steam Workshop Downloader