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
lara [203]
3 years ago
14

You're a short-order cook in a pancake restaurant, so you need to cook pancakes as fast as possible. You have one pan that can f

it capacity pancakes at a time. Using this pan you must cook pamCakes pancakes. Each pancake must be cooked for five minutes on each side, and once a pancake starts cooking on a side it has to cook for five minutes on that side. However, you can take a pancake out of the pan when you're ready to flip it after five minutes and put it back in the pan later to cook it on the other side. Write the method, minutes Needed, that returns the shortest time needed to cook numCakes pancakes in a pan that holds capacity pancakes at once.
Computers and Technology
1 answer:
Zina [86]3 years ago
8 0

Answer:

Explanation:

The shortest time needed means that we are not taking into account the amount of time it takes to switch pancakes, flip them, or take them out of the pan, etc. Only cooking them. Therefore, written in Java would be the following...

public static int minutesNeeded (int numCakes, int panCapacity) {

       int minutesNeededtoCook = 0;

       while (numCakes != 0) {

           if (numCakes > panCapacity) {

               numCakes -= panCapacity;

               minutesNeededtoCook += 10;

           } else {

               numCakes = 0;

               minutesNeededtoCook += 10;

           }

       }

       return minutesNeededtoCook;

   }

The code takes in the amount of pancakes and the pan capacity, then compares them and adds 10 minutes (5 on each side) per pancake batch that is being made until all the pancakes are made.

You might be interested in
Tell me the defination of working principle of computer with all information​
Rudik [331]

Answer:

Computer do the work primarily in the machine and we can not see, a control centre that converts the information data input to output.

Explanation:

Please mark as brainlist please please!

7 0
4 years ago
Somehow I lost 1000 points!!! Does anyone know what happened? Is it possible that I was hacked? ​
Dima020 [189]

Answer:

Explanation:

You most likely lost 1000 points because you cheated to get them if not there is a possibility you were.

6 0
3 years ago
Read 2 more answers
A 1 MB digital file needs to transmit a channel with bandwidth of 10 MHz and the SNR is 10 dB. What is the minimum amount of tim
hodyreva [135]

Answer:

A 1 MB digital file needs 0.23 seconds to transfer over a channel with bandwidth 10 MHz and SNR 10 dB.

Explanation:

We can calculate the channel capacity using Shannon's Capacity formula:

C = B + log₂ (1 + SNR)

Where C = Channel Capacity

           B = Bandwidth of the Channel

           SNR = Signal to Noise Ratio

We are given SNR in dB so we need to convert it into a ratio.

SNR_{dB} = 10log₁₀ (SNR)

10 = 10log₁₀ (SNR)

1 = log₁₀ (SNR)

SNR = 10¹

SNR = 10

So, using Shannon Channel Capacity formula:

C = 10 x 10⁶ log₂ (1 + 10)

C = 34.5 MHz

Total amount of time required to transmit a 1MB file:

1MB = 1 x 8 Mbytes = 8Mb

C = 34.5 MHz = 34.5 Mb/s

Time required = 8Mb/34.5Mb/s = 0.23 seconds

A 1 MB digital file needs 0.23 seconds to transfer over a channel with bandwidth 10 MHz and SNR 10 dB.

8 0
3 years ago
What is the tool used to see the movement of storm clouds
adoni [48]
Sometimes scientists use weather satellites.
8 0
3 years ago
The main reason for using a comment in your HTML code is to
zvonat [6]

Answer:

D, document and explain parts of code

Explanation:

Mark me brainliest :)

8 0
2 years ago
Other questions:
  • When you see a blank pointer this means you can drag the row or column border to change height or width
    14·1 answer
  • Extend the flow properties and definitions to the multiple-source, multiple- sink problem. Show that any flow in a multiple-sour
    13·1 answer
  • Use a while loop to repeatedly take input from the user and calculate a sum. The user will only be allowed to type in numbers, b
    15·1 answer
  • The length of time the valve is open, expressed in degrees of crankshaft rotation, is called camshaft
    10·1 answer
  • One important inheritance characteristic is that all entity subtypes inherit their ____ key attribute from their supertype. prim
    9·1 answer
  • Mobile devices need to work within limited screen space .
    11·1 answer
  • QUESTION 1
    7·1 answer
  • From Blown to Bits why is it important to know what children are doing on the Web Tonight?
    7·1 answer
  • A 32-bit number that's used to keep track of where you are in a sequence of TCP segments is known as a(n) ______ number.
    8·1 answer
  • What initialization vector (IV) do most weak implementations of the Wireless Equivalency Protocol (WEP) use
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!