You are on page 1of 2

NATIONAL UNIVERSITY OF SCIENCE AND TECHNOLOGY

FACULTY OF COMMERCE, DEPARTMENT OF FINANCE


BCOM (HON) FINANCE, BOMM (HON) FISCAL STUDIES
INTRODUCTION TO IT AND PROGRAMMING (CFI 1202)
2023-24 GROUP ASSIGNMENT 2
DUE DATE: 1 APRIL 2024

INSTRUCTIONS
 Select a single case to work on for your group from the two cases presented.
 Group composition will be decided by the Lecturer.
 Submissions exhibiting evidence of plagiarism or lacking originality will be penalised.
 For the completed assignment, submit jupyter notebooks/python files zipped in a
compressed folder in Google Classroom on or before due date.

CLASSES AND MODULES IN PYTHON

You are designing the user interface system of a customs duty computation program that that works
as follows:

 Firstly, the revenue officer inputs:


o the number of separate importers for whom he wishes to compute duty; and
o the ZWL/USD exchange rate on the date of declaration.
 When each importer’s turn to be evaluated comes up, the revenue officer then inputs the
following:
o The number of products that each importer intends to declare;
o The price for each product, declared in USD; and
 In return, the program computes the following for each importer:
o The ZWL duty value of each product declared;
o The total dutiable value for each importer.
 Finally, the program will state the total amount of duty required from each importer, computed
form the dutiable value for each importer.
 Assume that:
o each of the importers are individuals importing for private purposes; and
o the rate of duty is standard at 40%.

Assume that you have already designed and created the pseudocode of the user interface as shown
in Exhibit 02 below. You now need to convert the pseudocode into a python program that works
with classes and modules.

Exhibit 02

BEGIN

Assume that the Customs Officer wants to assess a set of importers

WHILE the Customs Officer wants to assess a set of importers DO

Page 1 of 2
Enter the number of importers that you want to assess

Enter the Exchange Rate applicable today

WHILE the number of importers so far evaluated is less than the


number of importers that need to be assessed DO

Enter the number of items that the current importer will operate
for

WHILE the number of years that the project will operate for is
not yet reached DO

Enter the value for duty purposes (in USD) for each item

ENDWHILE

Compute the total dutiable value for each importer (in ZWL)

ENDWHILE

Display the total amount of duty due (in ZWL) from each importer

Ask if the Customs Officer wants to evaluate another set of projects

ENDWHILE

END

Required

a) Convert the pseudocode given in Exhibit 02 into a Python program, and take note of how
the program runs. [25]
b) Convert the Python program into a module of class CustomsDuty, and a driver program.
The class module should contain relevant object that are capable of computing customs duty.
The driver program should the able to run like the program in (a) above, by:
 interacting with the users of the program;
 calling relevant objects of the class CustomsDuty module, to compute customs duty;
and
 printing out the output for the users. [75]

Programs that fail to run will not be awarded any marks. Marks will be awarded for
originality, practicality, usability, and innovativeness in program design. Plagiarised
work will not be awarded any marks.

Page 2 of 2

You might also like