NATIONAL INSTITUTE OF BUSINESS MANAGEMENT
DIPLOMA IN COMPUTER SYSTEM DESIGN – 2018.1 DCSD-2-3-08
DIPLOMA IN SOFTWARE ENGINEERING- 2018.1 DSE-2-3-08
GUI Application Development
08th October 2018, 09.00 am to 12.00 pm
Answer ALL questions.
Time: THREE hours.
1.
a. Explain following terms in .Net frame work. (8 Marks)
i. Command Object
ii. Multi-Threading
iii. Message Box
iv. Base Class Library
b. Write a simple program in C# to demonstrate the concept of Class and Object. (2 Marks)
c. Write simple codes or simple programs to demonstrate the use of following in C# programming.
(15 Marks)
i. Static Class iii. Sealed Class
ii. Smart Property (Get & Set) iv. Interface
v. Private Constructor
(Marks 25)
2.
a. Write a Console or Windows application to illustrate the use of Format Exception in C#. (5
Marks)
b. Develop a console program to create an overload method to find the Area and Volume of a
Rectangle. Create the method called “Calculate” in a class called “Rectangle”. Values for
length, width and height should be given as input from the user or you can give your own
values. (10 Marks)
c. Create the following classes to illustrate the concept of inheritance. (10 Marks)
Employee Class
Variables: Name – public, NIC – protected, Address – internal, Position – private. (Assign some
values for each variable)
Methods: public void displayData() – To display the values of each variable.
Manager Class: Inherit from the Employee Class
Page 1 of 3
Variables: Department – public, Joining Date - public (Assign some values for each variable)
Methods: public void displayData() – To display values which inherited from the Employee
Class and the values of the Manager Class.
In the main class create objects of the above two classes and display what are the variables you
can access from the above two classes.
(Marks 25)
3.
Database Name : Instagram
Table Name : Instagram_Users
Columns in Table : Member_Id, Member_Name, State, Country
Provide a relevant screen designs for the following questions with naming the relevant
controls. (You can provide one screen for all questions or a separate screens for each
question)
a. Provide relevant screen design. (5 marks)
b. Write a program to add data to the Instagram_Users table. (5 marks)
c. Display all the Instagram_Users details in a Data Grid View. (5 marks)
d. Give opportunity for the user to Update Member_Name, State, Country by using
Member_Id. (You can take values by selecting data grid view or take values from the text
boxes). (5 marks)
e. Delete a Member from the Instagram_Users Table. (by selecting the Member from the data
grid or taking the Member_Id from a text box). (5 marks)
Hint: No need to write full connection string and codes which automatically build by .Net
framework. Focus on the Table Name.
(Marks 25)
4.
a. Create a windows form application to input the Account type and the Account balance.
Calculate the interest according to the table given below. Display the total amount in the account
by adding the interest to the balance. Total= Balance + Interest Amount (10 Marks)
Account Type cannot be blank and give opportunity for user to select it by using a combo
box.
Page 2 of 3
Account Balance cannot be blank and must only accept numbers.
Use required Exception and Validations.
(Hint: Combo Box or Radio Buttons, Text Box, If-Else, Exception, Error Providers and other
controls)
Account Type Interest
Vanitha 8%
Upahara 10%
Hapan 7%
b. Develop a windows form application for ABC Company to calculate their employee’s
salaries based on the following requirements. The software must be able to input the Employee
Type (Trainee, Senior, IT Manager and CEO), Employee Basic Salary and Working Hours. Then
calculate and display the Employee Total Income for a month. (15 Marks)
Employee Basic Salary Working Hours Employee
Type Performance
Allowance
Trainee Between 25000 & 45000 Less than 160 5000
Between 25000 & 45000 Greater than 160 7500
Senior Between 50000 & 75000 Less than 150 10000
Between 50000 & 75000 Greater than 150 15000
IT Manager Between 75000 & 90000 Less than 120 20000
Between 75000 & 90000 Greater than 120 30000
CEO Between 120000 & 150000 Less than 100 40000
Between 120000 & 150000 Greater than 100 50000
Employee type cannot be blank and give opportunity for the user to select it by using a
combo box.
For any Employee, Basic Salary cannot be blank, must only accept numbers and cannot be
less than or greater to given condition.
Working hours cannot be blank and must only accept numbers.
Performance Allowance must added based on the working hours.
Use required Exceptions to handle runtime errors.
Total Salary = Basic Salary + Employee Performance Allowance (Based on the hours)
(Marks 25)
Page 3 of 3