A cookie recipe calls for the following ingredients: • 1.5 cups of sugar • 1 cup of butter • 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient needed for the specified number of cookies in the following format: You need 5 cups of sugar, 3 cups of butter, and 7 cups of flour.

Answers

Answer 1

The program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient is corresponds to the ingredients mentioned above.

Further explanation

Python is a general-purpose programming language. We want to write a python program that asks the user how many cookies they want to make and then displays the number of cups of each ingredient.

48 cookies = 1.5 cups of sugar + 1 cup of butter + 2.75 cups of flour, so:

def main():

   cookies = float(input("How many cookies would you like to make?\n>"))

   sugar = (1.5 * cookies) / 48.0

   butter = cookies / 48

   flour = (2.75 * cookies) / 48

   print("To make ", cookies, " cookies, you will need:\n", \

         format(sugar, '.2f'), " cups of sugar\n", \

         format(butter, '.2f'), " cups of butter\n", \

         format(flour, '.2f'), " cups of flour", sep='')

   redoQuery()  

def redoQuery():

   yn = input("Would you like to check another batch size? (y/n)\n>")

   if yn == 'y':

       main()

   elif yn =='n':

       exit()

   else:

       print("Please enter only a lowercase \'y\' or lowercase \'n\'," \

             "then press enter")

       redoQuery()

main()

The run program is shown in the attachment below.

Learn more

1. Learn more about python https://brainly.in/question/8049240

 

Answer details

Grade:  9

Subject: Computers and Technology

Chapter:  programming with python

Keywords: python

A Cookie Recipe Calls For The Following Ingredients: 1.5 Cups Of Sugar 1 Cup Of Butter 2.75 Cups Of Flour

Related Questions

Which of the following statements is incorrect in relation to processes: while, strictly speaking, at any instant of time, the CPU is running only one process, in the course of 1 second, it may work on several of them, giving the illusion of parallelism a process is just an instance of an executing program, including the current values of the program counter, registers, and variables processes can be created when an operating system is booted, created by the user, or a running process can create children processes there is a master process, which when started can last forever, and is not killable

Answers

Uahahshshsbsbnd nausizjdndbdywgvshs shsjsjzua. A a 2

What are the defenses to protect against these attacks?

Answers

McAfee, Norton(totally overprotective tho), if you have a Chromebook Chrome OS(even more protective), Windows Defender on Win 10...

The method used to add panels to a JTabbedPane is

newTab.
newPanel.
addPanel.
addTab.

Answers

Answer:

Explanation:

by the ecosystem

What number in base 2 is equivalent to 823 in base 10

Answers

823 in base 2 divide 823 by 2 and start writing remainder and then read remainders in reverse to get equivalant of 823 in base 10 to base 2 823 2 gt rem 1 now question of 8232 is 411 now divide this by 2 and 4112 gt rem 1 2052 gt rem

Most tkinter components, like frames and buttons, have a constructor that accepts __________ as its first argument.

A. the parent component
B. the child component
C. the root window
D. a frame

Answers

D . A frame , cause that’s what most tkinter components

How does 802.11g differ from 802.11b and 802.11a?

Answers

Try this explanation:

802.11a - the 1st generation, frequency - 5 GHz, max. data speed is 54 Mbits/sec.

802.11b - the 2d generation, frequency - 2.4 GHz, max. data speed is 11 MBits/sec.

802.11n - the last generation, frequency are - 2.4 & 5 GHz, max. data speed is 150 MBits/sec. and 600 MBits/sec. Supports 802.11a and 802.11b standarts.

E-commerce builds on traditional commerce by adding the flexibility that networks offer and the availability of the Internet. - true or false

Answers

True- the exchange that of goods online is such

briefly explain what is net neutrality and why is it important today

Answers

Net neutrality also means that ISPs can't charge users access fees for particular websites. ... The goal of net neutrality is to ensure that businesses can compete freely on the internet without having to pay gatekeeper tolls. Without it consumers would look more like advertising segments than an open marketplace.

Credits: thestreet.com

Statistical hypothesis testing involves testing the --------------- hypothesis and then make a decision about the ___________ hypothesis.

Answers

Answer:

Explanation:

null hypothesis

alternative hypothesis

Answer:

Statistical analysts test a hypothesis by measuring and examining a random sample of the population being analyzed. All analysts use a random population sample to test two different hypotheses: the null hypothesis and the alternative hypothesis.

Explanation:

The process of representing data in digital form so it can be used by a digital computer is called decimal byterepresentation. - true or false

Answers

True, the process described is called decimal byte representation.
Final answer:

The process of turning data into digital form for use by a digital computer is called 'digitization', not 'decimal byte representation'.

Explanation:

As asked here The statement the process of representing data in digital form so it can be used by a digital computer is called decimal byte representation - is false. The term is not 'decimal byte representation'. The correct term for this process is 'digitization'. Digitization is the process of converting information into a digital (i.e., computer-readable) format, where the information is organized into bits. These bits can then be used by digital devices and systems including computers.

Learn more about Digitization here:

https://brainly.com/question/32174504

#SPJ2

what is a Web application?

Answers

Answer:

A web application is a computer program that utilizes web browsers and web technology to perform tasks over the Internet.

Explanation:

Web applications include online forms, shopping carts, word processors, spreadsheets, video and photo editing, file conversion e.t.c.

Explain why it is reasonable to assume that receiving 3 duplicate ACKs in TCP is an indication that the network is not currently congested.

Answers

Answer:

to indicate if it is the account owner trying to log in

how do computers benefit individuals' health care?

Answers

Answer:

By having personal health records available on a computer, more doctors have access to an individual's information. This allows doctors to view all prescriptions that a person is on, which can help protect patients from conflicting medications to be taken at once, and can save time if a patient doesn't have to redo tests and procedures because the doctor doesn't have the records.

Do you think robots will take millions of jobs when they're put in different positions such as doctors or taxi drivers?

Answers

Yes, of course.

When you replace people with technologically advanced robots, it can disturb the economic factors. Although I don't agree with using robots as an every day, common thing, such as self-driving cars or like in the question, using robots as doctors. Technology is technology, it will always need updates and sometimes they break down or need repairs, so that could provide jobs for people; tech jobs that is. Not everybody is tech savvy though, but you learn. I still don't agree with it, but it is what it is.

Write and test a Python program to find and print the largest number in a set of real (floating point) numbers. The program should first read a single positive integer number from the user, which will be how many numbers to read and search through. After reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.

Answers

I can't read oooooyeaaaa

How are arrays stored in memory?

Answers

In Java, arrays are objects, therefore just like other objects arrays are stored in heap area. An array store primitive data types or reference (to derived data) types Just like objects the variable of the array holds the reference to the array.

Hope this helps Bruv

how is hardware different from sofware?

Answers

Answer:

Computer hardware is any physical device used in or with your machine, whereas software is a collection of code installed onto your computer's hard drive. For example, the computer monitor you are using to read this text and the mouse you are using to navigate this web page are computer hardware.

All software utilizes at least one hardware device to operate. For example, a video game, which is software, uses the computer processor (CPU), memory (RAM), hard drive, and video card to run. Word processing software uses the computer processor, memory, and hard drive to create and save documents.

What is time-slice? How is the end of the time slice indicated?

Answers

Time-slice is a part of the preemptive process - a scheduling algorithm that will return from the running state to the ready state in a system that can favor another process in the meantime (in order to satisfy the scheduling policy's priority constraint!!!!).

Time- slice is that period of time in which a process is allowed to run in a preemptive multitasking system. The end of one is indicted by the occurrence of a signal called.

The DSL technology is a a) Broadband b) Narrowband c) Both a) & b) d) None of the above

Answers

Answer:both

Explanation:

Q10. The percentile rank allows the researcher to determine:

a. what percentage of individuals in the sample scored above the target individual.

b. the mean for the population based on the mean for the sample.

c. how far a target individual’s score is from the group mean.

d. what percentage of individuals in the sample scored below the target individual.

Answers

I think the answer is a
Final answer:

The correct answer is option (d), which states that the percentile rank indicates what percentage of individuals in the sample scored below the target individual.

Explanation:

The percentile rank is a statistical measure that indicates the value below which a given percentage of observations in a group of observations falls. For example, to find the 90th percentile, you would identify the score k where 90 percent of the scores are the same as or below k, and 10 percent are above it. This means if you are at the 90th percentile in test scores, you scored better than 90 percent of the other test takers.

Interpreting percentiles is essential as it gives us information about the relative standing of an individual within a distribution. It is not a reflection of the actual score but instead a comparison with others' scores. Choice (d) is the correct answer to the question because the percentile rank tells us what percentage of individuals in the sample scored below the target individual.

Ethernet is a standard for a) LAN b) MAN c) WAN d) All of the above

Answers

Answer:

a) LAN

Explanation:

Ethernet is a standard for a IEEE or LAN.

Answer:all of the above

Explanation:

Which statement regarding Java files is false?

Java imposes no structure on a file.

Notions like “record” do not exist in Java files.

The programmer must structure files to meet the requirements of applications.

Records in a Java sequential file are stored in order by record key.

Answers

Answer:

Records in a Java sequential file are stored in order by record key.

Answer:

Records in a Java sequential file are stored in order by record key.

Write a program to read 2 numbers and display the largest of the two. You should use scanfto read the two numbers and use if statement to see which number is larger

Answers

Answer: in C

#include <stdio.h>

int main(){

  int num1, num2;

  printf("Enter first number :: ");

  scanf("%d", &num1);

  printf("Enter second number :: ");

  scanf("%d", &num2);

 

  if(num1 > num2){

     printf("%d is larger than %d\n", num1, num2);

  } else if (num2 > num1) {

     printf("%d is larger than %d\n", num2, num1);

  } else{

     printf("Both of them are equal\n");

  }

  return 0;

}

What is the primary means by which attackers infect computers with these attacks? How do these attacks commonly occur?

Answers

Well.. from personal experience...that’s ransomware..... these attacks usually occur when a HackerMan injects a file that contains the payload .... usually system configuration files...DLL’s, EXE, pretty much any file that contains codes that can modify someone’s operating system. This payload then locks your files so that you can only unlock your files using a key that can be purchased online.You enter the key? Your files are unlocked!

Do you think that using robots at home would be good and helpful?

Answers

Answer:

Yes

Explanation:

 would use a robot for :

organize the bedrooms

laundry

cleaning

cooking etc...

The robot I want to use is a robot that can do everything and can be remotely controlled from anywhere. Especially do the boring task while I relax.

Assuming that your company uses the Class A network 100.0.0.0/8, with what subnet mask would you need to configure all computers on the network to divide this network 11 times to match the comany's 11 departments?

Answers

Answer:

Class A network 100.0.0.0/8, we need to divide it so that it can use 11 department, therefore 2^{4} = 16 maximum subnet. The subnet mask 255.240.0.0/12. The hosts per subnet are 2^20 = 1048574. The first 5 subnet range is attached with this question.

Explanation:

The IP address is 32 bits, The default subnet of class A is 255.0.0.0/8, but in this case we take 4 bits from host and add it to network bits so 8+4 = 12, that's why mask bit is 12.

8 bits   + 8 bits  +  8 bits  + 8 bits

100       .    0       .     0       .      0

we take 4 bits from 2nd octet so that it can use in 11 departments, so the remaining  4 bits + 8 bits + 8 bits = 20 bits

2^{20} = 1048574 hosts in each subnet

2^ {4} = 16 subnet ( 0 to 15 range)

when we subtract 255-15 = 240 so that the subnet mask is 255.240.0.0 / 12

How are CGI programs different from Servlets?

Answers

Both Java servlets and CGI are utilized for generating dynamic web statements that admit a user application, process it on the server side and deliver answers to the user.

Servlets maintain various abilities that are challenging or difficult to achieve with conventional CGI. These abilities incorporate speaking directly to the network server,  sending data within various servlets, assembly tracking and maintaining of premature calculations.

Since servlets are composed in the Java programming dialect and develop a conventional API, so a servlet can be transferred from among web server. On the other hand, CGI programs may be principles subordinate, need to be recompiled or web server dependent.

Write a C++ program that prompt the user to enter three points (x1, y1), (x2, y2), (x3,y3) of a triangle and

Answers

Answer:

#include<iostream>

using namespace std;

int main(){

   int x1,x2,x3;

   int y1,y2,y3;

   cout<<"Enter the value of first point(x1,y1): ";

   cin>>x1>>y1;

   cout<<"\nEnter the value of second point(x2,y2): ";

   cin>>x2>>y2;

   cout<<"\nEnter the value of third point(x3,y3): ";

   cin>>x3>>y3;

   

}

Explanation:

first include the library iostream for use the input/output commands

then, write the main function. within the main function declare the variable which store the value of points.

after that, use the 'cout' for output. It has the function which print the value or message on the screen.

and 'cin' is used to store the value in the variable.

So, in the above code cout ask for enter the value of point and after enter value by user, cin store in the variables.

Note: you have to enter two value with space or by enter.

Sort the array A = [ 3, 1, 4, 1, 5, 9, 2, 6, 5] using insertion sort and illustrate your solution?

Answers

Answer:

Sorted list : [1, 1, 2, 3, 4, 5, 5, 6, 9]

Explanation:

For j= 2 to length of A

we find the place for A[j] in the sub-array A[1,..., j]

Taking i from j-1 to 1, if A[i] is greater than A[j] we shift it to right.

how are natural numbers, whole numbers, integers, and rational numbers related

Answers

Each can be a classification within another group of numbers.

For example:
All whole numbers can be natural numbers (but not the other way around)
All natural numbers and all whole numbers can be integers (also not the other way around)
All natural numbers, whole number and integers can be rational (not the other way around :):):)):))

Natural numbers: 1, 2, 3, 4...

Whole numbers: 0, 1, 2, 3...

Integers: -2, -1, 0, 1, 2...

Rational number: -2.5, -1.72, 0, 1, 3.77... (any number that can be written down)

Other Questions
Use the drop-down menus to answer each question.Which line represents the movement of a cart with a constant acceleration? AWhich line represents the movement of a cart with a constant velocity? CWhich lines represents a cart with no velocity or acceleration? B Need help fast!!!!!!!!!!! Discuss how to convert the standard form of the equation of a circle to the general form. 50 points Which civil rights organization used the same methods for achieving racial equality as the Congress of Racial Equality (CORE)? A. Black Panther Party B. American Indian Movement (AIM) C. Legal Defense Fund D. Southern Christian Leadership Conference (SCLC) What are some of the causes that Nina Otero fought for? (NM History) 0.2 is 1/10 of 2 true or false The term Kennedy chose to describe his sealing off of Cuba to prevent Soviet shipments of weapons or supplies was ________.interdictionquarantineisolationblockade Socialists generally supported all of the following provisions except ______. In which of the following sentences is the capitalized word or phrase used or placed incorrectly? A. Quin lo conoce L? B. Elena conoce A LOS DOS. C. Roberto conoce PARA MARA Y POR ALBERTO. D. Quin conoce A MARA? The state troopers in one state have a motto, Nine youre fine; ten youre mine, which is the standard that they use for pulling over speeders on the state highways. In other words, if the posted speed limit is 55 mph, drivers can drive at a rate up to 64 mph without fear of getting a ticket. Which of the following best describes the ethical culture in the state? a. The troopers are following a standard of positive law. b. The troopers are following a normative standard. c. The troopers are following a headline test. d. The troopers are following the Blanchard/Peale standard. Solve log_8 12 = x 2 . Round your answer to four decimal places. Which part of the table showing the relationship of the field of research to solid-state physics contains an error?crystallographyelectromagnetismmaterials sciencemetallurgy What is the author's purpose for including these details in Warriors Don't Cry Travel: One Cyclist drives at Six miles per hour faster then another Cyclist. Express the speed of the faster Cyclist in terms of the speed of the lowest Cyclist ..... What is 312 times 263 Which of the following contributes most to climate change PLEASEEEEE HELPPPPPPP!!!!!!!!!!!!!!!!! When your done pick either A,B,C,OR D THANK YOUUUUUUYUNights and Dragons From the memoir of author Abigail Prynne 1 I sit at my desk listening to thunder growl outside my window. Flashes of light burst through the darkness, and wind races past my window. The thrilling combination of sight and sound conjures up visions of dragons roaring proudly, breathing fire, and soaring across the midnight sky. Dragons first fascinated me when I was a little girl. They have followed me ever since. The magnificent creatures appeared in storybooks I read in the library, paintings I saw in museums, movies I watched in the theater, and the dreams I had in my sleep. By the time I was thirteen, one question consumed me. I wanted to know if dragons ever existed, so I set out on a quest for facts. 2 As I started my research, I discovered many skeptics. Scientists presented evidence to show why dragons could notand did notexist. They explained that it would be impossible for dragons to fly because they would be too big. They laughed at the idea of dragons breathing fire. They pointed out that no other animal has ever done this. They said that if dragons had lived, someone would have found remains somewhere in the world. No bones about it, there were plenty of logical explanations. It would have been easy for me to accept that the only place dragons ever existed was in the imaginations of those who believed. 3 I could have given up, but I thought about my grandmother. She always told me that "people who believe that science is the answer to everything are missing out on everything else." With her words in mind, I searched some more. There were many facts that hinted that dragons may not be fictional. I noticed that cultures across the world all described dragons in similar ways. This was odd because they had no way to communicate with each other. I found dragons mentioned in more than just stories. They appeared in old legal papers, in the travel logs of Marco Polo, and in the Bible. I saw that the Chinese calendar uses a different animal each year. Dragons are included along with eleven real animals. I began to believe it was a real possibility that all of these people were talking about a creature that actually existed. 4 With renewed hope that there was some truth to the legends, I looked for new research. I found that some experts disagreed with popular arguments against dragons. They suggested that a dragon could have four stomachs like a cow. If it created stomach gases like birds, it might create enough to lift itself off the ground. This would give it the ability to fly. If it forced out air when diving toward the earth, it might release gases which could ignite into flame. When the animal died, the stomachs would release strong acids that would dissolve its dead body over time. Biologists backed up these ideas with sketches and models based on known animals. Not everyone agreed with these ideas, but many of the things we accept about dinosaurs and other extinct species started the same way. 5 I doubt we will ever truly know whether dragons existed. There may always be two sides to the fiery debate. Some will say the stories come from active imaginations. Some will believe with all their hearts that the legendary creatures roamed our ancient world. I don't know for certain which side to believe, but the sound and fury of a night like this makes me smile. It rekindles my childhood dreams and keeps the exciting possibility alive. Which sentence from paragraph 4 makes an explicit statement without offering any implicit suggestions? With renewed hope that there was some truth to the legends, I looked for new research. If it created stomach gases like birds, it might create enough to lift itself off the ground. Biologists backed up these ideas with sketches and models based on known animals. Not everyone agreed with these ideas, but many of the things we accept about dinosaurs and other extinct species started the same way. An initial investment of $100 is now valued at $150. The annual interest rate is 5%, compounded continuously. The equation 100e0.05t = 150 represents the situation, where t is the number of years the money has been invested. About how long has the money been invested? Use your calculator and round to the nearest whole number. Years Which of the following describes one of the ways that the demographics of an area affect the price of housing in that area? Which is the correct answer? Question is in picture, please please help