Assignment 2
Assignment 2
General instructions
1. Save your assignment solution using the following naming convention <your student
number>_Assignment 2. So for example, your file could be named 1234567890_Assignment
2.
2. Ensure that the files are in pdf format and are legible. The instructions on how to convert
your files to pdf have been uploaded in the Assessments section on Blackboard. If your
diagrams are too small to read, you will score zero in those questions.
3. If your assignment is not submitted in PDF format, you will be penalised.
4. Upload your solution to Blackboard.
5. Late submissions will be penalised with -20% per calendar day or part of a day for each of the
first two (2) days after the due date (i.e. a penalty of -40%). On the third (3rd) day there will
be a further penalty of -60% (i.e. maximum mark of 0%). Failure to submit an assignment after
1 week (after deadline) will result in incomplete.
Additional information
Page 1 of 4
Terminator
Process
Decision
Data, or input/output
Flow arrow
Start
Read
number
Number != 0 No
Yes
Display
n++
average
Read next
Stop
number
Page 2 of 4
Question 1 [25 marks]
Using Visio
Using draw.io
Suppose a prospective student needs an AP score of at least 30 to study at QBERT University. All
students must write the NBT tests. If they score less than 65, they must register for academic literacy.
If the student has no maths then they may not study at the university. If the student has maths, and
scored greater than or equal to level 4, but less than 7, they may study BCom IT. If their maths score
is more than level 7, they may study for a BSc IT. If they scored less than level 4 they may not study
at the university.
Page 3 of 4
Question 3 [24 Marks]
An application must be written which calculates the perimeter of a triangle. The application should
allow a user to enter three sides of a triangle (positive integers only). If the user enters the incorrect
data type for any side, the application should prompt the user to enter the correct number. The
application should terminate after displaying the perimeter.
Page 4 of 4