VBN70US - Visual Programming With VB - Net Final Exam
VBN70US - Visual Programming With VB - Net Final Exam
NAMIBIA
VBN70US
Visual Programming with VB.Net
Degree
YEAR 3
FINAL EXAMINATION
JUNE 2019
Instructions to Candidates:
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
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)
(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)
Question Five