Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python 3, Here is the ingredient list for 4 servings of the indian dish Bhindi Masala: 250 grams of okra, 4 Tbsp of oil,

In python 3,

Here is the ingredient list for 4 servings of the indian dish Bhindi Masala: 250 grams of okra, 4 Tbsp of oil, 1 tsp cumin, 1 cup onion, 1 Tbsp ginger garlic paste, 1 cup chopped tomato,1/2 tsp turmeric, 1 tsp red chili powder, 1 tsp garam masala.

Write a program in python 3 using idle that: Prints a welcome message to the user telling them what the program does, takes input from the user on the number of servings they wish to prepare(whole number), Calculates the new ingredient quantities based on the input, Prints the new ingredient list with adjusted quantities. Use the round function to round to two decimal places.

Sample run of program:

Welcome! This program inputs how many servings you wish to make of the delicious dish, Bhindi Masala, and returns the correct quantities of ingredients.

How many servings would you like to make?

Enter a whole number: 6

375.0 grams of okra

6.0 Tbsp of oil

1.5 tsp cumin

1.5 cup onions

1.5 Tbsp ginger garic paste

1.5 cup chopped tomato

0.75 tsp turmeric

1.5 tsp red chili powder

1.5 tsp garam masala

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

Advances In Databases 28th British National Conference On Databases Bncod 28 Manchester Uk July 2011 Revised Selected Papers Lncs 7051

Authors: Alvaro A.A. Fernandes ,Alasdair J.G. Gray ,Khalid Belhajjame

2011th Edition

3642245765, 978-3642245763

More Books

Students also viewed these Databases questions