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 fit 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.

Answers

Answer 1

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.


Related Questions

In the ____ model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.

Answers

Answer:

peer to peer

Explanation:

i just know

In a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.

What do you mean by Computer Network?

Computer Network may be defined as a type of system that significantly connects two or more computing devices with the intention of transmitting and sharing information with one another. In a more simple sense, there is an interconnection between computing devices.

In a peer-to-peer networking model, a group of computers are linked together with having equal responsibilities for the processing of data and information. Each computer is capable to initiate a command that has to be followed by the rest.

Therefore, in a peer-to-peer model, each computer in a network can act as a server for all the other computers, sharing files and access to devices.

To learn more about the peer-to-peer model, refer to the link:

https://brainly.com/question/9315259

#SPJ2

What would you do if you noticed a glass bottle of apple juice fell from a shelf and spilled in the aisle? What steps would you take to make sure no one got hurt?

Answers

answer/Explanation:

I would first put up a caution sign about the floor being wet. I would then carefully pick up the broken bottle. I would then mop up the spilled juice and make sure I had swept up all the tiny pieces of glass. I would leave the caution sign up while the floor was drying so that customers would know to be careful while walking down that aisle.

in a company you are in charge of system maintainance. Justify with 5 reasons why your role is key

Answers

Answer:

As u are the in charge of system maintainance u have to maintain safety and security to the system.as the system maintainance is a very big role and u can say it is the key to ur company or to ur work.

A first-in first-out (FIFO) is a memory unit that stores information in such a manner that the item first in is the item first out. Show how a FIFO memory operates with three counters: a write counter WC that holds the address for the memory write operation; a read counter RCthat holds the address for the read operation; and an available storage counter ASC that indicates the number of items stored. ASC is incremented for every item stored and decremented for every item that is retrieved. The memory unit communicates with MAR and MBR.

Answers

Answer:

tews

Explanation:

What is the purpose of application software

Answers

Answer:

Explanation:

type of computer program that performs a specific personal, educational, and business function. Each program is designed to assist the user with a particular process, which may be related to productivity, creativity, and/or communication.

Question 7 of 10
When is it more professional not to send a business email?
O A. When a number of people should be included.
B. When the content is highly sensitive or emotional.
O C. When a written record is needed.
D. As a cover letter for an attachment

Answers

Answer:

B. When the content is highly sensitive or emotional

Explanation:

B. When the content is highly sensitive or emotional.

explain working principle of computer?​

Answers

Answer:

The working principle of the computer system. Computers do the work primarily in the machine and we can not see, a control center that converts the information data input to output. This control center, called the central processing unit (CPU), How Computers Work is a very complex system.

Explanation:

Serveral cheetas are growling at each other while hunting for animals.for which need are they competing?

Answers

Answer:

prey

Explanation:

Answer:

food plis let me now if am wrong

Explanation:

We need a program to calculate future cost of a loan taken by a user. The financial institution charges the following interest rates for loans. The user inputs are the amount of loan desired, the loan period (number of years), and the number of compounding per year. Your program should determine the interest rate based on the amount of the loan. Your program should calculate the future dollar amount of this loan. The total amount of interest at the end of the loan period. Your program should incorporate a looping structure so that the user could check out many loan scenarios. You need to determine how to stop the loop. Interest rate schedule is per following schedule: Loan < 10k rate = 2% 10k =

Answers

Answer:

Follows are the code to this question:

#include<iostream>//defining the header file

#include<cmath>//defining the header file

using namespace std;

int main() //defining main method

{

   double p,a,r;//defining double variable  

   int n,t;//defining integer variable

   bool flag = true;//defining bool variable flag  

   while(flag) //defining while loop for input value

   {

       cout<<"Enter Present Worth: ";//print message

       cin>>p;//input value in p

       cout<<"Enter number of compounding: ";//print message

       cin>>n;//input value in n

       cout<<"Enter Loan Period: ";//print message

       cin>>t;//input value in t

       if (p<10000)//defining if block that check principle value is graeter then 10000

       {

           r = 0.02;//defining r varaible that store 0.02 value  

       }

       else if (p>=10000 && p<=50000)//defining else if that value of p is in 10000 to 50000  

       {

           r = 0.05;//defining r varaible that store 0.05 value

       }

       else if (p>50000)//defining else if that value of p is in 50000

       {

           r = 0.07;//defining r varaible that store 0.07 value

       }

       a = p*pow((1 + r/((double)n)), n*t);//defining formula for calculate A  

       cout<<"\nInterest Rate of Loan: "<<r<<endl;//print r rate value

       cout<<"Future Worth: $"<<a<<endl;//print A value

       cout<<"Total Interest: $"<<(a-p)<<endl<<endl;//print total interest value

       char c;//defining char variable c

       cout<<"Do you want to check for more loans(Press 'Y' for yes, otherwise press any other key): ";//print message

       cin>>c;//input char value

       if (c!= 'Y' && c!= 'y')//define if block that check c value is not equal to y

           flag = false;//use flag that hold  value false

   }

   cout<<"Thank you!!!"<<endl;//print message

   return 0;

}

Output:

please find the attched file.

Explanation:

In the code, inside the main method three double variables "p, a, and, r", two integer variable "n and t", a bool variable is defined, in which double variable "p, n, and t" is used to input the value from the user-end.

In the next step, a condition statement has used that check the p-value and set the value according to the "p" variable value.The formula is used that calculates the value and prints its value, and uses a char variable that takes input "y" for again run the code or input other value to exit the program.  

what type of model does the Web use?

Answers

Answer:

Microsoft, Firefox, Google, and Office onenote webisite

Explanation:

cause they are a model

Can someone tell me what to type up this is for my web page design class

Answers

Answer:

You have to write the HTML code as given instructions/design.

Write the below code in text file and save as test.html and run.

Explanation:

<html>

<head>

<title>

Storyboard Practice - Text Formatting

</title>

</head>

<body>

<center>

<h1>

Web Design Overview

</h1>

</center>

</body>

</html>

The email application used by Jim’s office is sending emails with viruses attached to them to user’s computers. What step should Jim try first to resolve the issue?
Downgrade the email software to an older, previous version
Buy a newer email program and migrate the office computers to that program
Switch from open source software to proprietary software
Check for and install patches or software updates

Answers

The step that Jim should try first to resolve the issue is to check for and install patches or software updates. Thus, the correct option for this question is D.

What is a Software update?

A software update may be defined as a sequence of changes to the software in order to update, fix or improve it. Changes to the software will usually either fix bugs, fix security vulnerabilities, provide new features or improve performance and usability.

The process of software update usually fixes bugs in your current operating system and secures your phone from malicious attacks by fixing any security lapses. G-Pixel handsets receive security updates every month. However, that's not the case with all Android phones.

Therefore, checking for and installing patches or software updates is the step that should Jim try first in order to resolve the issue. Thus, the correct option for this question is D.

To learn more about Software updates, refer to the link:

https://brainly.com/question/5057366

#SPJ2

You download a game from the Internet since it looks fun to play. As you begin to play the game, your computer begins
to act erratically and finally crashes. Which of the following types of malware did you download?
Trojan horse
Virus
Worm
O Spyware
HElp

Answers

Answer:

Trojan Horse

Explanation:

A trojan horse is something that looks different than what it really is; it's deceptive.

Which one of these stores more data than a DVD ?
Floppy
CD Rom
Blue Ray Disk
Red Ray Disk
Submit

Answers

Answer:

Blue Ray Disk

Explanation:

true false are computer has four main parts​

Answers

Answer:

It is true because computer have four main parts

3. An open source software operating system
TYPE THE ANSWER

Answers

Answer:

Linux  

Explanation:

I read the reading

Joe just joined a new team at his marketing firm, which has been working on a campaign ad for the new Elmo doll. Everyone in the group has children except for Joe, and thus they are familiar with the doll. Joe has never seen an Elmo doll before. How should he deal with the situation?

Answers

Answer: ask someone to show or explain the doll to him

Explanation:

edmentum

Answer: ask someone to show or explain the doll to him

Explanation:

If Joe asks his teammates to show or explain the doll to him, he too can contribute ideas for the successful completion of the project.

How to give brainliest?

Answers

Answer:

Once two people answer a question, it'll have a bar on each answer that says Mark As Brainliest. Click that and it'll make it the Brainliest answer

Answer:

when two people answer there would be a white crown at the bottom right corner (of the answer) when you click on it it turns yellow/gold which means that you have marked that answer brainliest.

Pick the better answer (in your opinion) and then mark it brainliest.

Plz answer me will mark as brainliest ​

Answers

Answer:

D is the answer

Explanation:

because arteriales don't requare valves because they only go to one direction

2 paragraphs of shooting games doesn’t make you violent

Answers

Answer:

Video games. A common pastime for the American people, children and adults alike. However, one thing many people confuse about video games is the false notion that violent ones carry over into real life behavior. For example, are you a culinary chef after you play Overcooked? Are you a professional soccer player after playing FIFA? If the answers to those are no, or something of the sort, then shooter games should not be tied to school shootings and things of the such.

For one, shooter games are not realistic scenarios that children and adults will be played in. As for Counter Strike, players can play as police men and defend the people from terrorists who attack them, which is a positive message to send out. Another example would be Doom Eternal, which is a game about fighting demons, which at the end of the day is quite a religious and healthy message to spread to children. Even for more realistic shooter games, children are not likely to find a gun laying around, and by the chance that they do and they know how to use it, their judgment is greater than their anger at that age if they are knowledgeable in how to use a gun.

In conclusion, shooter games do not make people violent. The notion that they do is absurd, as it is, as parents say "not real", and therefore shouldn't have so much time invested in it. But, if a child is doing good in school and well behaved, there is no problem with letting them play shooter games. If anything, they build experiences with friends when they play with them. Isn't that what childhood is about, playing with friends? Adults are typically good with judgment in these sorts of things, and they should know better. For adulthood is full of freedom, and they should be able to do what they need to enjoy it.

Explanation:

3.24 LAB: Seasons
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.

Ex: If the input is:

April 11
the output is:

Spring
In addition, check if the string and int are valid (an actual month and day).

Ex: If the input is:

Blue 65
the output is:

Invalid
The dates for each season are:
Spring: March 20 - June 20
Summer: June 21 - September 21
Autumn: September 22 - December 20
Winter: December 21 - March 19

270738.1591718

import java.util.Scanner;

public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int inputYear;
boolean isLeapYear;

isLeapYear = false;
inputYear = scnr.nextInt();

/* Type your code here. */
}
}

Answers

Answer:

Seasons Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day. Ex: If the input is: April 11 the output is: Spring In addition, check if the string and int are valid (an actual month and day). Ex: If the input is: Blue 65 the output is: Invalid Invalid The dates for each season are: Spring: March 20 - June 20 Summer: June 21 - September 21 Autumn: September 22 - December 20 Winter: December 21 - March 19 LAB ACTIVITY 3.24.1: LAB: Seasons 0/10 main.cpp Load default template... 1 #include eam> 2 #include <string> 3 using namespace std; 4 5 int main() 6 string inputMonth; 7 int inputDay; 8 9 cin >> inputMonth; 10 cin >> inputDay; 11 12 /* Type your code here. */ 13 14 return; 15 }

Shut down and unplug the computer. Remove the CPU case lid. Locate the various fans, and then use compressed air to blow dirt out through the internal slits from inside the case.
✔ cleaning the fan

Save files to an external storage device to aid in file recovery.
✔ backup

This process allows you to permanently delete files you no longer need.
✔ cleaning out unneeded files

This mini program may be an unwanted application.
✔ widget

Remove programs you accidentally downloaded when you purchased an e-book.
✔ removing unwanted applications

This application scans, locates, and makes needed repairs on the hard drive.
✔ checking the hard drive for errors

I DID THIS CAUSE TI COULDNT FIND THE ANSWERS SO I WANTED TO HELP ANYONE WHO NEEDS THIS

Answers

the answers are:

- cleaning the fan

- backup

- cleaning out unneeded files

- widget

- removing unwanted applications

- checking the hard drive for errors

Microsoft
is one of the world's most popular operating systems.

Answers

Answer:

The answer is "Cooperation

"

Explanation:

Answer:

Microsoft Windows is one of the world most popular operating system

. answer is windows please mark me brain list

fill in the blanks – the icons mean arranging them in a proper sequence​

Answers

What do u need help with

There are 12 inches in a foot and 3 feet in a yard. Create a class named InchConversion. Its main() method accepts a value in inches from a user at the keyboard, and in turn passes the entered value to two methods. One converts the value from inches to feet, and the other converts the same value from inches to yards. Each method displays the results with appropriate explanation.

Answers

Answer:

import java.util.Scanner;

public class InchConversion

{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

   

 System.out.print("Enter inches: ");

 double inches = input.nextDouble();

 

 inchesToFeet(inches);

 inchesToYards(inches);

}

public static void inchesToFeet(double inches){

    double feet = inches / 12;

    System.out.println(inches + " inches = " + feet + " feet");

}

public static void inchesToYards(double inches){

    double yards = inches / 36;

    System.out.println(inches + " inches = " + yards + " yards");

}

}

Explanation:

In the inchesToFeet() method that takes one parameter, inches:

Convert the inches to feet using the conversion rate, divide inches by 12

Print the feet

In the inchesToYards() method that takes one parameter, inches:

Convert the inches to yards using the conversion rate, divide inches by 36

Print the yards

In the main:

Ask the user to enter the inches

Call the inchesToFeet() and inchesToYards() methods passing the inches as parameter for each method

Which is smaller - 1 PB or 1,000 TB? *
1 PB
1,000 TB
O They're equal

PLEASE HELP 10points

Answers

Answer:

they are all equal

Explanation:

I did this before

Write a function that takes two integer lists (not necessarily sorted) and returns true precisely when the first list is a sublist of the second.
The first list may appear anywhere within the second, but its elements must appear contiguously.
HINT: You should define and test a helper function that you can use in sublist.

Answers

Answer:

The function written in Python is as follows:

def checksublist(lista,listb):

     if(all(elem in lista for elem in listb)):

           print("The first list is a sub list of the second list.")  

     else:

           print("The first list is not a sub list of the second list.")

Explanation:

This line defines the function

def checksublist(lista,listb):

The following if condition checks if list1 is a subset of list2

     if(all(elem in lista for elem in listb)):

           print("The first list is a sub list of the second list.")  

The following else statement is executed if the above if statement is not true

     else:

           print("The first list is not a sub list of the second list.")

The function that takes two integer lists (not necessarily sorted) and returns true precisely when the first list is a sub list of the second is as follows:

def check_sublist(x, y):

  if(set(x).issubset(set(y))):

     return "The first list is a sublist of the second"

  else:

     return "The first list is not a sublist of the second"

print(check_sublist([2, 3, 5], [1, 2, 3, 4, 5, 6, 7]))

The code is written is python.

Code explanation:A function is declared called check_sublist. The function accept two parameters namely x and y.if the parameter x is a subset of y then the it will return  "The first list is a sublist of the second"Else it will return  "The first list is not a sublist of the second"Finally, we use the print statement to call our function with the required parameter.

learn more on python code here; https://brainly.com/question/25797503?referrer=searchResults

A software program designed to simplify communication between various hospital systems such as ADT (Admission-Transfer-Discharge), Pharmacy, LIS (Lab Information System), RIS (Radiology Information System) and etc. is called

Answers

Answer:

"HL7 Translator" seems to be the appropriate answer.

Explanation:

HL7 would be a universal, user-friendly protocol that allows collaboration across two or maybe more programs for health administration.  Throughout the context through one and sometimes more HL7 communications, including billing healthcare and customer data, health-related data will be transmitted.  The implementation of HL7 includes the participation of clinical technology analysts, integration professionals, system administrators including analysts.

in the evolution of the internet which event occurred most recently ?

Answers

Answer:

The real answer is: Web 2.0 replaced the World Wide Web.

Explanation:

a p e x

The World Wide Web was succeeded by Web 2.0, which is often referred to as the internet and was the most recent development.

What is Web 2.0?

Websites that emphasize user-generated content, usability, participatory culture, and interoperability for end users are known as “Web 2.0” sites.

On the internet, the greater user interaction and cooperation, more ubiquitous network connectivity, and improved communication channels are characteristics of web 2.0.

Darcy DiNucci initially used the phrase in 1999, while Tim O'Reilly and Dale Dougherty popularized it in late 2004 at the inaugural Web 2.0 Conference. A Web 2.0 website enables on the internet users to communicate and work together as co-creators of user-generated content in a virtual community through social media discussion.

Therefore, it is Web 2.0.

To learn more about the internet, refer to:

https://brainly.com/question/13308791

#SPJ6

true false the table can have only one primary key​

Answers

where is the tableeeeeee
Other Questions
a.A check for $100 was returned as NSF by the bank. The bank charged a returned check $25 processing fee. b.The March 31st cash receipts of $3,428 were placed in the night drop box after the bank closed. c.A $15 debit memo for checks printed by the bank was included with the canceled checks. d.Outstanding checks amounted to $2,565. e.A customer's note for $1,500 was collected by the bank and a collection fee of $25 was deducted. f.A check for $325 which was drawn on another company was included with the canceled checks. Barbara bought 5 amusement park tickets at a cost of $30. If she bought 7 tickets, how much would it cost?It would cost $. The cost price of a refrigerator is $1850.00. A buyer who is given a discount of 5% for a cash purchase will pay please help asap :(( Which of the following best describes how the y values are changing over each interval?y2412.34581632They are increasing by 2 each time,They are increasing by 4 each time,They are being multiplied by 2 each time.They are being multiplied by 4 each time. I need some help with this problem If Sam has 5 blue shirts and 7 red shirt, what is Sam's ratio of blue shirts to red shirts? Most migration abilities are learned responses? which is greatest -9 or 9 what is a description of something that includes a number and a unit is known as 1. Where and why did the Renaissance begin? Put these milestones in order in which they appeared in history. Using hand held instruments to measure the position of the sun and stars, Using the earths magnetic field to determine direction,using the earths magnetic field to determine direction tying maps to databases, and navigating by site using maps in the shape of coastline. Grade 10 Grade 11 Grade 12 TotalUses School Buses34273394Does Not Use School Buses16231756Total505050150Choose all of the statements that can be inferred from the data in the table.A. 37% of all students do not use school busesB. 66% of students in grade 12 use school busesC. 11% of students in grade 10 do not use school busesD. 34% of students who use school buses are in grade 10E. 15% of all students are in grade 11 and do not use school buses the price of an item has been reduced by 85%. the original price was $35 find price of item.please help also look at my other question i posted i need help on it :( 2 3/4 subtracted from 11 is equal to 8 1/4 The National Highway Traffic Safety Administration reported the percentage of traffic accidents occurring each day of the week. Assume that a sample of 420 accidents provided the following data. Sunday 66Monday 50Tuesday 53Wednesday 47Thursday 55 Friday 69Saturday 80 A) Conduct a hypothesis test to determine if the proportion of traffic accidents is the same for each day of the week. What is the P-Value? Use a 0.05 level of significance, what is your conclusion?B) Compute the percentage of traffic accidents occuring on each day of the week. What day has the highest percentage of traffic accidents? Does this seem reasonable? Explain. In general, fitness evaluations are meant to help you measure your physical fitnessagainst those of similar age and genderPlease select the best answer from the choices provided.OF Translate the sentence into an equation.Twice the difference of a number and 9 is 5.Use the variable c for the unknown number. Hey can someone help me out thank! :D ITS DUE TODAY!!! :p1. Use the integer multiplication facts in their integer bubble to create six related integer division facts.2.The quotient of any two integers (with a nonzero divisor) will be a rational number. If and are integers, then - (p/q)= (---)=(----)3. Mrs. McIntire, a seventh-grade math teacher, is grading papers. Three students gave the following responses to the same math problem: 1/-2 -(1/2) -1/24.On Mrs. McIntires answer key for the assignment, the correct answer is 0.5. Which student answer(s) is (are) correct? Explain. Solve the equation for the indicated variable x - 3y for y