Question: ( This must be done in C sharpe programming ) In this assignment, you will write a program that prints a discount table. The output

(This must be done in C sharpe programming) In this assignment, you will write a program that prints a discount table. The output will be directed to a list box. Your interface will be a windows form that contains:
Label - Start Value:
Textbox - start_value
Label - End Value:
Textbox - end_value
Listbox - discount_table_list
Button - Display Table (Name: display_table)
When the button is clicked, the code will loop through the values, skipping odd numbers, beginning with the start value and ending with the end value, inclusive. Each time through the loop, the current value of the loop control variable will be tested to see what discount is relevant and will add a string to the listbox of the form current_value has a XXX percent discount. Where current_value is the current value of the loop counter and XXX is a calculated discount.
Here are the discount percentages:
1-5 items - no discount
6-10 items -5%
11-20 items -10%
21+ items -20%
Valid ranges of numbers are anything greater than 0 and less than 100. Try different ranges and see how it works.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!