Skip to content

Instantly share code, notes, and snippets.

@niavesper
Created February 17, 2020 00:06
Show Gist options
  • Save niavesper/f656e0d9d02ee58b0f157a01314efa27 to your computer and use it in GitHub Desktop.
Save niavesper/f656e0d9d02ee58b0f157a01314efa27 to your computer and use it in GitHub Desktop.
//Making a cup of tea
//walk over to the electric kettle
//lift the electric kettle off its base
//open the lid of the kettle
//walk over to the sink
//turn on the water faucet
//fill the kettle above the MIN mark
//turn off the water faucet
//close the lid of the kettle
//walk over to the kettle base
//put the kettle onto the base
//push the On button on the kettle
//walk over to the cupboard
//open the cupboard
//take the tea bag out of the tea box
//close the cupboard
//walk over to the garbage bin
//take off the tea bag wrapper
//throw the tea bag wrapper into the garbage bin
//wait for the water to finish boiling
//walk over to the cupboard
//open the cupboard
//take a mug out of the cupboard
//close the cupboard
//walk over to the electric kettle
//put the tea bag into the mug
//set the mug onto the counter
//lift the electric kettle off its base
//pour hot water over the tea bag, filling 3/4 of the mug
//put the electric kettle onto its base
//walk over to the fridge
//open the fridge
//take a bottle of half and half out of the fridge
//close the fridge
//walk over to where you left the mug
//open the bottle of half and half
//pour half and half into the mug, leaving top 1/2 inch of the mug liquid-free
//close the bottle of half and half
//walk over to the fridge
//open the fridge
//put the bottle of half and half into the fridge
//close the fridge
//walk over to where you left the mug
//the tea is ready to drink
@dharmarajan-krithika
Copy link

Great work..love the use of single line comments and the details in the pseudo code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment