Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hummus To make Hummus with tahini for 2 people, you require the following ingredients Ingredient Quantity Cup of chickpeas 0.5 Tablespoon of lemon juice 1

image text in transcribed
Hummus To make Hummus with tahini for 2 people, you require the following ingredients Ingredient Quantity Cup of chickpeas 0.5 Tablespoon of lemon juice 1 Tablespoon of tahini 1.5 Tablespoon of olive oil 1.5 Make a program that reads the cost of each of these ingredients from the user, as well as the number of people to serve and outputs the number of ingredients to buy as well as the total cost. Example Input Enter price of 1 Cup of chickpeas: 2 Enter price of 1 Tablespoon of lemon juice: 0.60 Enter price of 1 Tablespoon of tahini: 0.4 Enter price of 1 Tablespoon of olive oil: 0.2 Enter number of people to serve: 4 Output 1 Cup of chickpeas that cost 2.00$ 2 Tablespoon of lemon juice that cost 1.205 3 Tablespoons of tahini that cost 1.205 3 Tablespoons of olive oil that cost 0.60$ Total cost is 5.00$ Note: Show only two digits after any decimal number

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions