Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

In Python 3,

Here is the ingrediant 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

Happy Cooking!

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_2

Step: 3

blur-text-image_3

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 Systems For Advanced Applications Dasfaa 2023 International Workshops Bdms 2023 Bdqm 2023 Gdma 2023 Bundlers 2023 Tianjin China April 17 20 2023 Proceedings Lncs 13922

Authors: Amr El Abbadi ,Gillian Dobbie ,Zhiyong Feng ,Lu Chen ,Xiaohui Tao ,Yingxia Shao ,Hongzhi Yin

1st Edition

3031354141, 978-3031354144

More Books

Students also viewed these Databases questions