Welcome! Log In Create A New Profile

# Solution : Assignment 1, Q13 wrong?

Posted by Ron
Announcements Last Post
: Programming Students at UNISA School of Computing 06/19/2019 02:01PM
SoC Curricula 09/30/2017 01:08PM
Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
School of Computing Short Learning Programmes 11/24/2014 08:37AM
Unisa contact information 07/28/2011 01:28PM
 Solution : Assignment 1, Q13 wrong? March 25, 2010 01:43PM Registered: 9 years ago Posts: 7 Rating: 0
```Language: HTMLI feel the answer for question 13 of Assignment 1 should be number 2 and NOT number 1 as indicated in the solution.
Since counter starts as 1 (and not 0) and the while loop runs for as long as counter < 5 (and not equal to), the loop
will run for when counter equals 1, 2, 3 and 4 which is 4 times and not 5.

Quote

```
 Re: Solution : Assignment 1, Q13 wrong? March 25, 2010 02:45PM Registered: 10 years ago Posts: 10 Rating: 0
i agree the solution is wrong.
 Re: Solution : Assignment 1, Q13 wrong? March 26, 2010 07:29AM Admin Registered: 14 years ago Posts: 9,696 Rating: 307
Tutorial letter 201 which we have already sent out agrees.

```Language: HTMLpage 7
ICT2613/201/01/2010
counter = counter + 1;
}
1. 5
2. 4
3. 3
4. 2
`Language: HTMLThank you Dr. Mac, and I do hope that the results will be updated on myUnisa without any further contribution on our part.`