Question: C# how to calculate discount
We are selling Monitors. We have decided to give discounts based on the following items.
i. CRT monitors attract 10% discount
User is required to provide all the details mentioned in the following registration form If user fails to enter for example User Name then the Message box should pop up with â??Please Enter your User Nameâ?? .It should be same for all the fields. When user enters all the details then all the details should be displayed in a Label.
ii.LCD monitors are of 2 types
a. 21 inch attracts 8% discount
b. 23 inch attracts 5% discount Ask the user to enter the type of monitor. If the user enter CRT, display the appropriate message. If the user enter LCD, ask the user to enter the size. Based on the size entered by the user, display appropriate messages.
Hint: - use 'If...else' construct - use Relational operators
help this problem plsss