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 startvalue
Label End Value:
Textbox endvalue
Listbox discounttablelist
Button Display Table Name: displaytable
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 currentvalue has a XXX percent discount. Where currentvalue is the current value of the loop counter and XXX is a calculated discount.
Here are the discount percentages:
items no discount
items
items
items
Valid ranges of numbers are anything greater than and less than 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
