A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program that prompts the user to enter the total number of biscuits, the number of biscuit in a bag, and the number of biscuit bags in a container. The program then outputs the number of bags and the number of containers to ship the biscuit. Note that each bag must contain the specified number of biscuit, and each container must contain the specified number of bags. If the last bag of biscuit contains less than the number of specified biscuit, you can discard it and output the number of leftover biscuit. Similarly, if the last container contains less than the number of specified bags, you can discard it and output the number of leftover bags.
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 bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a
Step by step
Solved in 4 steps with 3 images