Need help with a python program. A supermarket awards coupons depending on how much a customer spends on groceries. For example, if you spend $50, you will get a coupon worth eight percent of that amount. The following table shows the percent used to calculate the coupon awarded for different amounts spent. Write a program that prompts the user to enter the cost cost of groceries, calculates and displays the coupon percentage and the coupon amount a person can receive based on the groceries purchased. The coupon amount must be displayed with 2 decimal places using an f-string. If the user enters a grocery amount of <= 0, a message should be displayed and the program should end. Do not use the round function.
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:
Need help with a python
Step by step
Solved in 3 steps with 2 images