Software Engineering and Visual Programming Projects (CSCT6112)

Computer Science - COS

Semester: First Semester

Level: 500

Year: 2018

1/2
RESIT EXAMINATION
SCHOOL H.T.T.T.C DEPARTMENT COMPUTER SCIENCE OPTION FCS600
COURSE CODE: CSCT6112 && CSCT6105:
COURSE TITLE: Software engineering, Visual programming and projects
LECTURER: Mr. DJAMEN NYONKEU Gildas CREDIT VALUE: 2
DATE Jan 2019 DURATION 1:30 START TIME………………….END TIME………………..
Exercise : (9 mks) (FCS and ICT)
1. Define the following terms, with an example for each: (4mks)
a- Object
b- Collection
c- Method
d- Property
e- Event
2. What does the key word SUB means? (1 mk)
3. Write VB.NET program to allow the user to input two integer values and then the
program print the results of adding, subtracting, multiplying, and dividing among the
two values.
Example:
Enter value a:30
Enter value b:10
The result of adding is 40. (1mk)
4. Here, we created an application that acts as a counter. (1.5x2=3mks)
A counter should start at 0 and increment by 1 each time when the counter button is pressed.
It is also useful to have an additional button that will reset the counter to 0.
Here is the code for the two button_click events, one is btnCounter and the other is btnReset. Please fill the
following blanks and finish this application. The counter label control’s name is lblCounter
Private Sub btnCounter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCounter.Click
___________1___________ ’ Declare an integer variable called intCounterusing DIM
___________2____________’ Assign the current value of the Counter (the number displayed
in lblCounter) to counter variable (intCounter)
Hint: Using VAL( ) to convert String Data Type to Number
____________3____________ ' Add one to the counter variable
_____________4___________ 'Convert the counter variable to a String and output it to the label
End Sub
REPUBLIC OF CAMEROON
Peace Work Fatherland
THE UNIVERSITY OF BAMENDA
P.O. BOX BAMBILI
www.schoolfaqs.net
2/2
Private Sub btnReset_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReset.Click
___________5_______________'Reset the counter label to 0
End Sub
Problem 1 (11mks) linked list. FCS only
The singly linked list is a chain of its item. Each item contains two parts--data and a link. The data
part is to store information and the link part of an item is used to point or to store the address of the
next item.
we are going to build a singly linked list that has two links--one(pfirst) links to the first item of the
list and another one(plast) point to the last item of the list. The program also provides a menu of
choices that a user can use do some operations on the linked list data structure.
1. Define the element of the linked list by using a class that has two members--data and next link.
2. Write VB code to add an element to the linked list
Note: To add an element to the linked list, you need to consider 4 things:
a. When the list is empty.
b. If the new element is to be added to the beginning of the list.
c. If the new element is to be added to the middle position of the list,.
d. If the new element is to be added to the last of the list .
3. Write VB code to Count elements of the singly linked list
4. Write VB code to Delete an element of the singly linked list
5. Write VB code to Show the minimum and maximum items
6. Write VB code to Search an item in the Linked List
7. Write VB code to print all elements of the linkedlist
8. Write VB code to display a menu of choices
Problem 2 (11mks) ICT only
1. Recall the principle of bubble sort
2. Write a VB function that read 50 numbers and store in a given array
3. Write a VB function that count the number of 10 in the array
4. Write function that delete a given element in the array
5. Write function to sort the array (bubble sort).
6. Write a VB function to print all elements on the array
“A good presentation of the paper is advisable
www.schoolfaqs.net