100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Exam (elaborations) COS1512 - Introduction To Programming II (COS1512) R92,00
Add to cart

Exam (elaborations)

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

 27 views  1 purchase

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

Preview 3 out of 26  pages

  • October 11, 2022
  • 26
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
All documents for this subject (51)
avatar-seller
lindelanitshikalange0
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 schoema@unisa.ac.za.

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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller lindelanitshikalange0. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R92,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

53068 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R92,00  1x  sold
  • (0)
Add to cart
Added