0% found this document useful (0 votes)
88 views

VBN70US - Visual Programming With VB - Net Final Exam

Exam paper 5 programming vb.net

Uploaded by

EP Sammy
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views

VBN70US - Visual Programming With VB - Net Final Exam

Exam paper 5 programming vb.net

Uploaded by

EP Sammy
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

THE INTERNATIONAL UNIVERSITY OF MANAGEMENT

NAMIBIA

VBN70US
Visual Programming with VB.Net
Degree
YEAR 3

FINAL EXAMINATION

JUNE 2019
Instructions to Candidates:

1. Time Allowed: 3 Hours.


2. All questions carry 25 marks each.
3. Calculators are allowed provided they are not programmable.
4. No books, dictionaries, papers, cell phones or any other written
materials are allowed in this examination.
5. Candidates who break IUM examination regulations or commit any
malpractice will be disqualified from the examinations.

Total Marks: 100

Examiners: Ms Petrus

Moderator: Ms Mutasa
Section A – Answer all the Questions

Question One

Write a program that takes an input of your gross salary and your total saving that will call a
function named taxCalculator() to calculate your tax. The taxCalculator() function will take
parameters such as the gross salary as well as the total savings amount. Name your program
Tax Calculator. The tax is to be calculated as follows:

(a) The savings is deducted from the gross income to calculate the taxable income.
Maximum deduction of savings can be N$ 100,000, even though the amount can
be more than this. (10 Marks)
(b) For up to N$100,000 as taxable income the tax is 0 (Slab 0); beyond 100,000 to
200,000 tax is 10% of the difference above 100,000 (Slab 1); beyond 200,000 up
to N$500,000 the net tax is the tax calculated from Slab 0 and Slab 1 and then
20% of the taxable income exceeding 200,000 (Slab 2); if its more than
N$500,000, then the tax is tax from Slab 0, Slab 1, Slab 2 and 30% of the amount
exceeding N$500,000.
(15 Marks)
[Total: 25 Marks]

Question Two

Design and implement a working program for the following user requirement:

Mr. Ndjiku is a Grade 5 Teacher at People Primary School (PPS). He has been teaching his
pupils about time conversion in his Mathematic class. On one given day, he experienced a
problem with some learners that were struggling to understand the concept of time
conversion. As a Third year programming student, you are hired to help Mr. Ndjiku by
designing and implementing an application that will convert time in second value in terms of
Days, Hours, Minutes and Seconds, and the converted value should be displayed in the label
named SecLabel. Your program is to be saved as TimeConversion.
The program should be tested with the following input:
1.Input :100seconds,Output: 1 minute 40 seconds
2.input:10000 seconds, Output:1 day 3 hours 46 minutes 40 seconds
Note:
1 Minute = 60 seconds
1 hour = 3600 seconds
1 day = 86400 seconds
NB: Use Try..catch while assigning values from the textboxes in variables

[Total: 25 Marks]

Section B

Choose any two questions from the following Questions:

Question Three

‘Legacy Systems Incorporated’ have been known as industry leaders for software
development. This reputation was based on the use of procedural languages and
relational databases. The company’s clients are now demanding that future projects be
developed within the ‘objects orientation’ paradigm. Convince the CEO of the
company that making the switch to a new paradigm is worthwhile by answering the
following questions.

a) Briefly discuss the key features and differences of procedural languages and
object-oriented languages. (10 marks)

b) Discuss each of the following features typically found in object-oriented languages.


For each feature, using your own suitable examples, outline how it could help the
company to build software systems.
i) Inheritance
ii) Encapsulation and Information Hiding
iii) Polymorphism
(15 marks)
Total [25 Marks]
Question Four

a) Event-Driven Programming is often associated with programs for Graphical User


Interfaces (GUIs) and Web Programming. Describe the meaning of the term Event-
Driven Programming and provide code examples of how this style of programming
works. Are all languages suitable for Event-Driven Programming?

(10 marks)

b) ‘Testing is the same as debugging.’ Discuss this statement and explain whether or not
you agree with it. In your answer, consider tools and techniques that might be used.
(10 marks)
c) What is an IDE and what are its key features and functions? (5 marks)

Total [25 Marks]

Question Five

a)Describe the range of tools available to support the programming


development process for a team of programmers who work on collaborative
projects.
(10 marks)
b) Evaluate the success of these tools in improving the productivity of
programmers and the quality of the code they produce. Include examples to back
up any points made. (15 marks)
Total [25 Marks]

****END OF EXAM ****

You might also like