Slappy’s Software Sales Assignment You have been hired by Slappy’s Software Sales to write a program to figure the total cost to customers that order Slappy’s software packages. Discounts are given based on the number of units sold: Number of Units Sold Discount Amount 1 – 9 None 10 – 19 20% 20 – 49 30% 50 – 99 40% 100 or more 50% Create a form similar to this: The three boxes are labels. Remember to use the Auto Size and Border Style properties. The program should read the number of units sold and figure a base cost. The units cost $99 each. A discount should then be figured and subtracted from the base cost. The subtotal, discount amount and total cost should be displayed, as currency, in the appropriate labels. Here are some screen shots of the running program: Set the tab order and access keys. Put comments in your program as to what each section is doing. Use constants for the discount rates and base price.
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:
Slappy’s Software Sales Assignment
You have been hired by Slappy’s Software Sales to write a
total cost to customers that order Slappy’s software packages.
Discounts are given based on the number of units sold:
Number of Units Sold Discount Amount
1 – 9 None
10 – 19 20%
20 – 49 30%
50 – 99 40%
100 or more 50%
Create a form similar to this:
The three boxes are labels. Remember to use the Auto Size and Border Style
properties.
The program should read the number of units sold and figure a base cost. The
units cost $99 each. A discount should then be figured and subtracted from the
base cost. The subtotal, discount amount and total cost should be displayed, as
currency, in the appropriate labels.
Here are some screen shots of the running program:
Set the tab order and access keys.
Put comments in your program as to what each section is doing.
Use constants for the discount rates and base price.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images