
1) Write the related code for the following Form based on the Criteria given below:
a) When user will not enter Employee Name a message should be displayed stating â??Please enter Employee Name
b) When user provide all the details a message should popup â??The Details have been successfully savedâ??
2) We are selling Monitors. We have decided to give discounts based on the following items.
i. CRT monitors attract 10% discount
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
3) Write the code for the following form based on the criteria given below:
4) Create a C# program for the following scenario:
The grading system of a college is as follows:
Marks : 80 -100 display "Distinction"
70 - 80 "Very Good
60 - 70 "Good"
50 - 60 "OK"
40 - 50 "Average"
Less than 40 "Poor" Ask the user to enter the marks. Based on the marks display appropriate messages