Professional Documents
Culture Documents
Intro To IT and Programming - Group Assignment 2 - 2023-24
Intro To IT and Programming - Group Assignment 2 - 2023-24
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.
You are designing the user interface system of a customs duty computation program that that works
as follows:
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
Page 1 of 2
Enter the number of importers that you want to assess
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
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