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
KatRina [158]
3 years ago
10

When you purchase donuts, they come in boxes of 12, so 24 donuts take 2 boxes. All donuts need to be in a box, so if you buy 13

donuts, you'll get 2 boxes with 12 in the first box and 1 in the second. If the integer variable numberOfDonuts contains the positive number of donuts purchased, which of the following will correctly give the number of boxes needed?
a. int numberOfBoxes = 1 + numberOfDonuts / 12;
b. int numberOfBoxes = numberOfDonuts / 12 + numberOfDonuts % 12;
c. int numberOfBoxes = numberOfDonuts / 12;
d. int numberOfBoxes = (numberOfDonuts + 11) / 12;
Computers and Technology
1 answer:
Dima020 [189]3 years ago
4 0

Answer:

d) int numberOfBoxes = (numberOfDonuts + 11) / 12

Explanation:

Hope this helps

You might be interested in
Suppose you have two RAID arrays, one implementing RAID 3, the other RAID 5. Each has 9 disk drives in its array. If the RAID 5
Snezhnost [94]

Answer:

48 is the answer

Explanation:

16×3 is the explanation for your question

8 0
3 years ago
Put the parts of the program in order to have the output shown below.
Ksenya-84 [330]
Diana is attaching a brace to a rectangular gate. She will put the brace on the diagonal of the rectangle as shown.
5 0
3 years ago
Should you have a chance to participate in the design and implementation of a new Operating System, what course of action would
elena-s [515]

Answer:

Provide various open source services for users of the operating system.

Explanation:

Operating systems are applications that manages the computer hardware system. It creates a suitable platform for other user and system applications to run with access to the hardware features through a kernel.

The open source applications and services are user software applications that are free for users to customise and share with other users.

6 0
3 years ago
What solicits online input such as product ratings from consumers?
Pie

Answer:

Crowdsourcing I think is the correct answer. "A quick response code" and "Computer Forensics" both don't make sense as answers, and Crowdfunding is specifically for money.

7 0
3 years ago
Quick Style sets are located under the Styles group in the Home tab.<br><br> true or false
Ostrovityanka [42]
True, hope this helps
5 0
3 years ago
Other questions:
  • How do I take off the header off my second page in google docs ? ( I only need it on page 1)
    8·2 answers
  • What are three new things in Microsoft Word 2016?
    5·1 answer
  • If in your checkout cart right before you buy something there is an option saying "this order contains a gift." on amazon, what
    7·1 answer
  • Emily has to create an audio-visual presentation on animated movies. Which input device will she be LEAST likely to use while cr
    6·1 answer
  • How does a light bulb work
    7·2 answers
  • How does the binary numbering system differ from the hexadecimal numbering system?
    14·2 answers
  • When a client computer wants to connect to a service instance, what specific name type does it use to find the service?
    9·1 answer
  • Justine was interested in learning how to play the piano. Before she was allowed to even play the piano, she has had to learn
    15·2 answers
  • Write a python program to find the Area of Circle!<br>GRADE 8 CBSE​
    15·1 answer
  • A web site that contains large numbers of misspelled words and grammatical errors fails which of these general criteria?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!