Write a program called HW2_Q1.py that asks a shop owner for product information and creates a menu system that allows customers to purchase multiple products of varying quantities. The program should start by asking the shop owner’s name and company name. Next, it should ask for three (3) products and their prices. Finally, it should display a menu. Use 2 functions for this question. Namely: shop_details() – returns all required info for menu() function menu(product_1, price_1,product_2, price_2,product_3, price_3) - displays the menu Below is a sample run of the program that demonstrates how your output could look (user input is highlighted for emphasis):
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:
Write a
menu system that allows customers to purchase multiple products of varying quantities. The
program should start by asking the shop owner’s name and company name. Next, it should ask for
three (3) products and their prices. Finally, it should display a menu. Use 2 functions for this
question. Namely:
shop_details() – returns all required info for menu() function
menu(product_1, price_1,product_2, price_2,product_3, price_3) - displays
the menu
Below is a sample run of the program that demonstrates how your output could look (user input is
highlighted for emphasis):
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images