Question

1.You are sleep expert for a baby that is having struggle sleeping every night. You are...

1.You are sleep expert for a baby that is having struggle sleeping every night. You are to ask the mother of the child "How many oz of milk the child drank ?" Based on the amount of milk, you will have to determine how many hours the baby is going to sleep.

If the baby drank 6 or more oz s of milk, the baby will sleep 5 hours continuously. As a sleep expert, you are to suggest the baby will sleep well. Display "Baby will sleep well for 5 hours"

If the baby drank less than 6 oz, then display "Baby will not sleep well. So be prepared".

2.Write a Python program for the scenario mentioned above.

Homework Answers

Answer #1

Hello learner,

Thanks for asking.

#Here is the required python code

n=int(input("Enter the amount of milk in oz that the child drank:"))
if(n>=6):
print("Baby will sleep well for 5 hours")
else:
print("Baby will not sleep well. So be prepared")

#At first input is taken from the mother in oz and then the condition is used in which if and else statement is used for printing different lines according to the input which is given by the mother.

please upvote and ask if you have any query.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Family Background The Family resides at Makati City. Members of the household includes the client J,...
Family Background The Family resides at Makati City. Members of the household includes the client J, a 24 year old housewife who gave birth to her 4 week old baby girl , her husband, M, 26 years old and their 1 year old son. J and M are living together for 3 years. The client, J is the one who takes care of their infant and the newborn. Occasionally, they argue for some concerns (financial, household chores) in the family....
SECTION A: READ THE PASSAGE AND ANSWER QUESTIONS 1-3 Emma, a monthly salaried worker, received 1,300...
SECTION A: READ THE PASSAGE AND ANSWER QUESTIONS 1-3 Emma, a monthly salaried worker, received 1,300 cedis as her net salary; she heard that this year’s inflation is at 18%. This situation caused prices to soar so high that she complained about everything she buys. In the previous year she was able to buy herself, dresses, a basket of foodstuffs, a small bag of oranges, a dozen of drinks and her transportation. However, this year, she couldn’t afford the full...
provide 3-4 paragraphs post (team 2) 1-What are 4 key things you learned about the topic...
provide 3-4 paragraphs post (team 2) 1-What are 4 key things you learned about the topic from reading their paper? 2-How does the topic relate to you and your current or past job? 3-Critique the paper in terms of the organization and quality.1- Employee Stress and how it has an Adverse Effect on a Company This paper explores employee stress and how it has an adverse effect on a company, its employees and the organization. Job stress can have a...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
In narrative essay format, I want you to address a business/organization case study using multiple concepts...
In narrative essay format, I want you to address a business/organization case study using multiple concepts from class. The case question and case text begin on page 5 of this document. You need to demonstrate their best understanding of management and organizational behavior theory, and the application of those ideas to improve the understanding of various issues. You need to clearly identify at least 3 distinct, substantive issues. For each issue you need to 1), identify evidence from the case...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most...
      MK Restaurant: Branding of Thai-Style Hotpot The restaurant industry is one of the most competitive in Thailand. With a large number of players ranging from restaurants in five-star hotels, global fast-food chains to small stalls along the streets and everything in between, the Thais are spoiled for choice. In addition, as the world becomes globalized, consumers are familiar with international dishes and would not hesitate to try new offerings from the other side of the globe. As a...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT