Question

In: Computer Science

A pizza restaurant requires 200 grams of flour, 10 ml of olive oil, 100 ml of...

  1. A pizza restaurant requires 200 grams of flour, 10 ml of olive oil, 100 ml of tomato sauce and 200 grams of cheese to make one of their basic pizzas. The restaurant’s supplier sells bags of flour weighing 5 kg each, drums of olive oil containing 5 litres, cans of tomato sauce containing 2 litres and bags of grated cheese weighing 1 kg. Write a python program to ask the user how many pizzas they expect to make in the following week and work out what supplies would need to bought from the supplier in order to meed the predicted demand. The program should also let the user know what quantities of each ingredient will be left over at the end of the week. include comments

Solutions

Expert Solution

Solution:

code:

import math
numOfPizzas = int(input('Enter number of pizzas required for the coming week: '))
quanFlour= numOfPizzas*200
quanOil= numOfPizzas*10
quanSauce= numOfPizzas*100
quanCheez= quanFlour
numPacketFlour= math.ceil(quanFlour/5000)
print("Quantity of flour required is: %d" % numPacketFlour)
numPacketOil= math.ceil(quanOil/5000)
print("Quantity of Olive oil required is: %d" % numPacketOil)
numPacketSauce= math.ceil(quanSauce/2000)
print("Quantity of flour required is: %d" % numPacketSauce)
numPacketCheez= math.ceil(quanCheez/1000)
print("Quantity of flour required is: %d" % numPacketCheez)
print("Quantity left after end of the week: ")
print("Flour: %d gram, Oil: %d ml, Sauce: %d ml, Cheez: %d gram" % ((quanFlour%5000), (quanOil%5000), (quanSauce%2000), (quanCheez%1000)))

output:

Hit the thumbs up if you liked the answer. :)


Related Solutions

a) You are given 200 mL of an aqueous solution contianing 10 grams of compound A,...
a) You are given 200 mL of an aqueous solution contianing 10 grams of compound A, from which are asked to separate A. How many grams of A could be removed in a single extraction with 100 mL of ethyl ether? Asummer that the ratio of the concentration of A in ethyl ether to its concentration in water (i.e., the distribution coefficient for A in ethyl ether/water) is equal to 3.0. b) How many total grams of A can be...
a) You are given 200 mL of an aqueous solution contianing 10 grams of compound A,...
a) You are given 200 mL of an aqueous solution contianing 10 grams of compound A, from which are asked to separate A. How many grams of A could be removed in a single extraction with 100 mL of ethyl ether? Asummer that the ratio of the concentration of A in ethyl ether to its concentration in water (i.e., the distribution coefficient for A in ethyl ether/water) is equal to 3.0. b) How many total grams of A can be...
An olive oil factory requires a fixed capital investment of $3,000,000 and a working capital of...
An olive oil factory requires a fixed capital investment of $3,000,000 and a working capital of $250,000. The average annual cost of production is $1,200,000 whereas the average annual income from sales is $2,000,000. The tax rate on profits is known to be 15% and the rate of interest is 10%. The expected lifetime of the equipment is 15 years and the annual rate of depreciation is 6% of the initial value. a)Calculate the rate of return on investment. Comment...
An olive oil factory requires a fixed capital investment of $3,000,000 and a working capital of...
An olive oil factory requires a fixed capital investment of $3,000,000 and a working capital of $250,000. The average annual cost of production is $1,200,000 whereas the average annual income from sales is $2,000,000. The tax rate on profits is known to be 15% and the rate of interest is 10%. The expected lifetime of the equipment is 15 years and the annual rate of depreciation is 6% of the initial value. a) Calculate the rate of return on investment....
A pizza restaurant monitors the size (measured by the diameter) of the 10-inch pizzas that it...
A pizza restaurant monitors the size (measured by the diameter) of the 10-inch pizzas that it prepares. Pizza crusts are made from doughsthat are prepared and prepackaged in boxes of 15 by a supplier. Doughsare thawed and pressed in a pressing machine. The toppings are added, and the pizzas are baked. The wetness of the doughsvaries from box to box, and if the dough is too wet or greasy, it is difficult to press, resulting in a crust that is...
On December 1, Y1, Alexander Inc., a US based importer of olive oil placed an order for 500 cases of olive oil at a price of 100 Euros per case. The pertinent exchange rates are given below.
ALEXANDER Inc. CASE:On December 1, Y1, Alexander Inc., a US based importer of olive oil placed an order for 500 cases of olive oil at a price of 100 Euros per case. The pertinent exchange rates are given below.DATE              SPOT              FORWAR RATE                         CALL OPTION PREMIUM FOR                        RATE           (to January 31, Y2)                        1/31/Y2 (Strike price of $1)12/1/Y1           $1.00                       $1.08                                                       $0.0412/31/Y2         $1.12                       $1.20                                                       $0.121/31/Y2           $1.15                       $1.15                                                       $0.15Alexander Inc. has effective borrowing rate of 12% (1%...
Calculate the grams of the acid and base forms of Tris needed to produce 200 mL...
Calculate the grams of the acid and base forms of Tris needed to produce 200 mL of a 25 mM solution of buffered Tris at pH 8.0. The pKa for Tris is 8.2 and the molecular weight of the base form is 157.6, and the acid form is 121.14.
Restaurant “King Steak” offers a set lunch of a 150 grams steak for $100. The steaks...
Restaurant “King Steak” offers a set lunch of a 150 grams steak for $100. The steaks are cut by a machine and the weight of a steak can be assumed to be normally distributed with mean 152 grams and standard deviation 1.7 grams. (a) What is the probability that a customer gets a steak that weighs less than 150 grams? (b) There is a 4% chance that a customer gets a steak that weighs less than W grams. What is...
A 200 mL solution of .100 M solution of Ammonia, NH3, is slowly mixed with .100...
A 200 mL solution of .100 M solution of Ammonia, NH3, is slowly mixed with .100 M HCl. Determine the pH after addition of: 0 ml of HCl, 50 mL of HCl, 100 mL of HCl, 200 mL of HCl, and 250 mL of HCl.
A 200 mL solution of .100 M solution of Ammonia, NH3, is slowly mixed with .100...
A 200 mL solution of .100 M solution of Ammonia, NH3, is slowly mixed with .100 M HCl. Determine the pH after addition of: 0 ml of HCl, 50 mL of HCl, 100 mL of HCl, 200 mL of HCl, and 250 mL of HCl.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT