Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Exam (elaborations) COS1512 - Introduction To Programming II (COS1512)

Rating
-
Sold
1
Pages
26
Grade
A
Uploaded on
11-10-2022
Written in
2022/2023

Exam (elaborations) COS1512 - Introduction To Programming II (COS1512)

Institution
Course

Content preview

COS1512/201/0/2022




Tutorial Letter 202/3/2022

Introduction to Programming II
COS1512


School of Computing


This tutorial letter contains the solutions to Assignment 2




BARCODE

, COS1512/202/0/2022

Introduction
By the time you receive this tutorial letter you should have already completed assignment 2 and we hope
that you are well on your way with your studies. This tutorial letter contains the solutions to Assignment
2. You are welcome to e-mail me with any queries at .

Please study this tutorial letter carefully, even if you achieved a good mark. We provide valuable
explanations with each question to help you understand the study material and prepare for the
examination.



Allocation of marks
When we mark assignments, we comment on your answers. Many students make the same mistakes
and consequently we discuss general problems in the tutorial letters. It is, therefore, important to work
through the tutorial letters and to make sure you understand our solutions and where you went wrong.
The maximum number of marks you could obtain for Assignment 2 is 65. This is converted to a
percentage. If you for instance obtained 40 marks for Assignment 2, you received 40/65 * 100 = 62% for
Assignment 2. This percentage in turn contributes a weight of 30% to the year mark, as can be seen in
the summary of the weights allocated to the assignments for COS1512 below.

Assignment number Weight

1 5

2 30

3 35

4 30


We give the mark allocation for the questions below. Please note that this is NOT the way exam answers
will be marked. Note that you were required to include the program code and the input and output for all
the questions. If you did not include the output for your program, you will not get full marks for the
question. We discuss a possible solution for each question below. Please study the solution and the
discussions thoroughly.

We did not mark all the question in detail.

The marks you received for questions 1, 2 and 5 was determined on the following basis:
Question not done 0/5
Question attempted, but the program does not work at all 2/5
A good attempt, but there are a few problems with your answer
(e.g. no output or incorrect output) 3.5/5
The program works correctly and produces the correct output 5/5




2

, COS1512/202/0/2022

The marks you received for question 3 was determined on the following basis:
Question not done 0/10
Question attempted, but the program does not work at all 2/10
A good attempt, but there are a few problems with your answer 6/10
The program works correctly and produces the correct output, but
no planning is shown 7/10
The program works correctly, the planning of the program is shown
and the program produces the correct output 10/10

Questions 4 and 6 were not marked in detail.

The marks you received for question 4 was determined on the following basis:
This question was not marked in detail. You were expected to process the text file character by
character. If you did not process the question character by character, you did not get full marks. If you
attempted the question, processed the text file character by character and produced the correct output,
you will get 5 marks. If you did not show how you planned your program but processed the text file
character by character and produced the correct output, you will get 4 marks. If you attempted the
question but did not process the text file character by character or did not show the correct output, you
will get 3 marks. If you attempted the question but did not process the text file character by character,
and did not show the correct output, you will get 2 marks. If you did not attempt the question, you will get
0 marks. Please go through the solution that we give for question 4 to make sure that you understand
how to work with text files.

The marks you received for question 6 was determined on the following basis:
Question not done 0/5
Question attempted, but no output or incorrect output 2/5
The program works correctly and produces the correct output 5/5

The marks you received for question 7 was determined on the following basis:
We marked only questions 7(n), 7(o) and 7(p). We allocated 7 marks to question7(n); 5 marks to
question 7(o) and 7 marks to question 7(p). The exact mark allocation is shown in the solution below.
You also received 6 marks if you answered all of the questions from question 7(a) to question 7(m), and
less according to what you did if you did not answer all of the questions from 7(a) to 7(m). Total number
of marks for question 7 is max 25 marks.

The marks you received for question 8 was determined on the following basis:
Question 8 was not marked in detail. If you answered it, i.e. reflected on your learning experience while
doing this assignment, you received 5 marks. If you did not answer the question, you will get 0 marks.




3

Written for

Institution
Course

Document information

Uploaded on
October 11, 2022
Number of pages
26
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$5.81
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
lindelanitshikalange0

Get to know the seller

Seller avatar
lindelanitshikalange0 University of South Africa (Unisa)
Follow You need to be logged in order to follow users or courses
Sold
5
Member since
3 year
Number of followers
4
Documents
14
Last sold
3 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions