se use Visual Studio or Xcode to create a program that asks user giving you the amount of money customer has spent, your program will determine how much percent of discount the customer will receive: If the amount is more than $300, the discount is 30%; If the amount is more than $200 but less than $300, the discount is 20%; If the amount is more than $100 but less than $200, the discount is 10%; If the amount is less than $100, the discount is 5%; Based on the inputted amount v
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:
- Please use Visual Studio or Xcode to create a
program that asks user giving you the amount of money customer has spent, your program will determine how much percent of discount the customer will receive:
If the amount is more than $300, the discount is 30%;
If the amount is more than $200 but less than $300, the discount is 20%;
If the amount is more than $100 but less than $200, the discount is 10%;
If the amount is less than $100, the discount is 5%;
Based on the inputted amount value, your program will print out the discount amount . using C++
Step by step
Solved in 4 steps with 2 images