A cookie recipe calls for the following ingredients:1.5 cups of sugar1 cup of butter2.75 cups of flourThe recipe produces 48 cookies with this amount of the ingredients. Write a program that asksthe user how many cookies he or she wants to make, then displays the number of cups of eachingredient needed for the specified number of cookies.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
A cookie recipe calls for the following ingredients:
1.5 cups of sugar
1 cup of butter
2.75 cups of flour
The recipe produces 48 cookies with this amount of the ingredients. Write a program that asks
the user how many cookies he or she wants to make, then displays the number of cups of each
ingredient needed for the specified number of cookies.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images