Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
10 views

Assignment 2

This document outlines the instructions for Assignment II for the BCIS1623 course at the University of the Free State, due on August 19, 2023. It includes guidelines for file naming, submission format, penalties for late submissions, and tasks involving flowchart creation and pseudocode writing for specific scenarios. The assignment consists of three questions related to flowcharts and programming logic.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Assignment 2

This document outlines the instructions for Assignment II for the BCIS1623 course at the University of the Free State, due on August 19, 2023. It includes guidelines for file naming, submission format, penalties for late submissions, and tasks involving flowchart creation and pseudocode writing for specific scenarios. The assignment consists of three questions related to flowcharts and programming logic.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

UNIVERSITY OF THE FREE STATE

Department of Computer Science


and Informatics
BCIS1623

ASSIGNMENT II Due Date: 19 August 2023 before 20:00

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

A flowchart is a diagram that depicts a process, system or computer algorithm. As a visual


representation of data flow, flowcharts are useful in writing a program or algorithm and explaining it
to others or collaborating with them on it. You can use a flowchart to spell out the logic behind a
program before ever starting to code the automated process. It can help to organize big-picture
thinking and provide a guide when time comes to code. More specifically, flowcharts can:

• Demonstrate the way code is organised.


• Visualize the execution of code within a program.
• Show the structure of a website or application.
• Understand how users navigate a website or program.
The following are some of the symbols used for drawing a flowchart:

Page 1 of 4
Terminator

Process

Decision

Data, or input/output

Flow arrow

The following is an example of a basic flowchart:

Start

Read
number

Number != 0 No

Yes

Sum += Number Calculate average

Display
n++
average

Read next
Stop
number

Page 2 of 4
Question 1 [25 marks]

Suppose the following output screens are given:

a) Draw a flowchart for the given outputs. [17]


b) Write the pseudocode which can be given to a programmer to write the application. Write the
application in a notepad. Save the file using the following naming convention <your student
number>_Assignment 2_ Question1. So for example, your file could be named
1234567890_Assignment 2_Question1.
[8]

Using Visio

1. In Visio, create a new blank or basic drawing.


2. To access the flowchart shapes, navigate to More shapes->Flowchart->Basic flowchart shapes.

Using draw.io

1. Access draw.io at https://app.diagrams.net/ .


2. To access the flowchart diagram shapes, navigate to Create new diagram -> Flowcharts ->
Flowchart 2.

Question 2 [22 marks]

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.

a) Draw a flowchart to visualize this scenario.

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.

a) Draw a flowchart to visualize this scenario. [14]


b) Write the pseudocode which can be given to a programmer to write the application. Write the
application in a notepad. Save the file using the following naming convention <your student
number>_Assignment 2_Question3. So for example, your file could be named
1234567890_Assignment 2_Question3. [10]

Page 4 of 4

You might also like