Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Solve the following problem using pseudocode A coffee maker has three options/menus. A= Americano, B= Black coffee, C= Capucinno. The process of producing a cup

image text in transcribed
image text in transcribed
Solve the following problem using pseudocode A coffee maker has three options/menus. A= Americano, B= Black coffee, C= Capucinno. The process of producing a cup of coffee is as followed: 1. The machine boiled a water until the temperature reach 100 degree celcius 2. The machine mix the boiling water with a spoon of coffee 3. The machine pour 100ml coffee to the cup 4. The machine pour a fresh milk, 20ml to the cup 5. The cup of coffee is ready - When the user press A button, the machine will create a normal coffee following all the processes (step 1-5). - When the user press B button, the machine will repeat step number 2 three times ( 3 spoons of coffee), and skip step number 4 . - When the user press C button, the machine will repeat step number 4 two times ( 220ml of fresh milk). celcius 2. The machine mix the boiling water with a spoon of coffee 3. The machine pour 100ml coffee to the cup 4. The machine pour a fresh milk, 20ml to the cup 5. The cup of coffee is ready - When the user press A button, the machine will create a normal coffee following all the processes (step 1-5). - When the user press B button, the machine will repeat step number 2 three times ( 3 spoons of coffee), and skip step number 4 . - When the user press C button, the machine will repeat step number 4 two times ( 220ml of fresh milk). Write the pseudocode that explains how the coffee maker machine prepare the menu A and C. Use the iteration in your pseudocode. You are not required to draw any diagram, i.e. FlowChart, Swimlane

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions