ython solution please    Task 1 Description let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance. So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee. Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

python solution please 

 

Task 1
Description


let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance.
So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee.
Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet.


Objectives
Let's break the task into several steps:
First, read the numbers of coffee drinks from the input.
Figure out how much of each ingredient the machine will need. Note that one cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 g of coffee beans.
Output the required ingredient amounts back to the user.


Examples
The greater-than symbol followed by space (> ) represents the user input. Notice that it's not the part of the input.
Example 1: a dialogue with a user might look like this
Write how many cups of coffee you will need:
> 25
For 25 cups of coffee you will need:
5000 ml of water
1250 ml of milk
375 g of coffee beans
Example 2: here is another dialogue
Write how many cups of coffee you will need:
> 125
For 125 cups of coffee you will need:
25000 ml of water
6250 ml of milk
1875 g of coffee beans

Task 1
Description
let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a
lot of guests! In these circumstances, it's better to make preparations in advance.
So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can
adjust the program by calculating how much water, coffee, and milk are necessary to
make the specified amount of coffee.
Of course, all this coffee is not needed right now, so at this stage, the coffee machine
doesn't actually make any coffee yet.
Objectives
Let's break the task into several steps:
1. First, read the numbers of coffee drinks from the input.
2. Figure out how much of each ingredient the machine will need. Note that one cup of
coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 gof
coffee beans.
3. Output the required ingredient amounts back to the user.
Examples
The greater-than symbol followed by space (> ) represents the user input. Notice that it's
not the part of the input.
Example 1: a dialogue with a user might look like this
Write how many cups of coffee you will need:
> 25
For 25 cups of coffee you will need:
5000 ml of water
1250 ml of milk
375 g of coffee beans
Example 2: here is another dialogue
Write how many cups of coffee you will need:
> 125
For 125 cups of coffee you will need:
25000 ml of water
6250 ml of milk
1875 g of coffee beans
Transcribed Image Text:Task 1 Description let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance. So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee. Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet. Objectives Let's break the task into several steps: 1. First, read the numbers of coffee drinks from the input. 2. Figure out how much of each ingredient the machine will need. Note that one cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 gof coffee beans. 3. Output the required ingredient amounts back to the user. Examples The greater-than symbol followed by space (> ) represents the user input. Notice that it's not the part of the input. Example 1: a dialogue with a user might look like this Write how many cups of coffee you will need: > 25 For 25 cups of coffee you will need: 5000 ml of water 1250 ml of milk 375 g of coffee beans Example 2: here is another dialogue Write how many cups of coffee you will need: > 125 For 125 cups of coffee you will need: 25000 ml of water 6250 ml of milk 1875 g of coffee beans
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY