• We need your support!

    We are currently struggling to cover the operational costs of Xtremepapers, as a result we might have to shut this website down. Please donate if we have helped you and help make a difference in other students' lives!
    Click here to Donate Now (View Announcement)

Computers & ICT: Post your doubts here!

Messages
188
Reaction score
9
Points
28
Yeah I can handle all the 2011 paper 2's, thanks to my teacher :)

I know the basics well but not further than that :D that's enough for paper 22 for my knowledge..have to work hard for P3 :whistle:

How are you doing with P2's?
 
Messages
62
Reaction score
8
Points
18
Yeah I can handle all the 2011 paper 2's, thanks to my teacher :)

I know the basics well but not further than that :D that's enough for paper 22 for my knowledge..have to work hard for P3 :whistle:

How are you doing with P2's?
well m not gud wid p2 cuz of da program code writin part which i don knwo which is asked in exam.....m not givin p3 dis tym....hey i'm goin away 4 now...need 2 study 4 p2.....will be either back after 20-30 mins or else only 2moro....so gud luck man(y)
 
Messages
188
Reaction score
9
Points
28
I was about to go to0 bro..

Its still not too late to study and get some knowledge about codes...give some attention to them.

Thanks and wish you the same :)

Peace out :cool:
 
Messages
42
Reaction score
29
Points
28
I prepared something for you:

Trace Tables
Algorithms
Programming Code (Write and Read for Understanding)
Programming Techniques
Calculating File Size
Declaration of a Variable:
DIM VariableName AS DataType
Array:
DIM ArrayName(Size) AS DataType
Data Types:
  • Integer
  • Double, Decimal
  • String
  • Boolean
  • Date
  • Currency
  • Real
Indentation, Annotation, Commenting on Code
Designing an Interface that will be asked
Pseudocode
Debugging Methods:
  • Cross Referencing (Checks Program for Duplicate Variables Used)
  • Tracing (Step-By-Step Checking Each Instruction until Errors are Found)
  • Variable Dumps (All values of Variables used are displayed to enable the User to compare them with the Expected Results)
  • Desk Checking (Dry Run which Programmer Tests Code for Errors Manually)
Testing Methods:
  1. White Box Testing (Testing Code, All Paths)
  2. Black Box (Testing All Outputs)
  3. Alpha Beta Testing (Alpha: People in Company Testing Code, Beta: Ordinary Users Testing The Actual Program)
Loops:
  1. FOR...NEXT
  2. WHILE...ENDWHILE
  3. REPEAT...UNTIL
  4. DO...UNTIL
Errors:
  • Syntax Error
  • Arithmetic Error
  • Overflow (Runtime) Error
  • Logical Error
 

xpf

Messages
3
Reaction score
0
Points
1
can anybody help me with the programming in computer paper2 9691 A-level
PLZZZZZzz
i couldn't do the coding part
 
Messages
42
Reaction score
29
Points
28
All you need to know is
1. How to initialize an array:
Dim Array(10) As Integer
For i = 1 to 10
Array(i) = 0
Next i

2. Declaration of variables:
Dim VariableName As DataType

3. Using loops:
While CONDITION 'Checks Condition at the Beginning
...
EndWhile

REPEAT
...
UNTIL Condition 'Check Condition at the End and does the code at least once

4. Structures:
STRUCTURE StructureName
DIM Var1 AS DataType
...
DIM VarX AS DataType
END STRUCTURE

4. Procedures & Functions:
PROCEDURE Name
Instructions
END PROCEDURE

FUNCTION Name
Instructions
END FUNCTION

6. Pseudocode
Write in simple and Understandable words like a story of events.

READ FILE
UNTIL NOT EOF, DO
INSTRUCTIONS
LOOP

*EOF = End Of File
 
Messages
2
Reaction score
1
Points
13
http://www.xtremepapers.com/papers/CIE/Cambridge International A and AS Level/Computing (9691)/9691_y11_sp_2.pdf

question 4 part 2 (the last one on pg 12)
Can someone write me a code for this ?
Visual basic 6 most preferably .



Code:
Public Function algol(x As String)
Dim hr As String
Dim min As String
Dim proxx As String
 
 
total = x
hr = Left(total, 2)
 
min = Right(total, 2)
 
 
proxx = ((Val(hr * 2) + (Val(min / 30) + 1)))
 
End Function
 
'To call the function
Private Sub Command2_Click()
algol ("20:30")
End Sub
 
Messages
188
Reaction score
9
Points
28
I prepared something for you:

Trace Tables
Algorithms
Programming Code (Write and Read for Understanding)
Programming Techniques
Calculating File Size
Declaration of a Variable:
DIM VariableName AS DataType
Array:
DIM ArrayName(Size) AS DataType
Data Types:
  • Integer
  • Double, Decimal
  • String
  • Boolean
  • Date
  • Currency
  • Real
Indentation, Annotation, Commenting on Code

Designing an Interface that will be asked
Pseudocode
Debugging Methods:
  • Cross Referencing (Checks Program for Duplicate Variables Used)
  • Tracing (Step-By-Step Checking Each Instruction until Errors are Found)
  • Variable Dumps (All values of Variables used are displayed to enable the User to compare them with the Expected Results)
  • Desk Checking (Dry Run which Programmer Tests Code for Errors Manually)
Testing Methods:

  1. White Box Testing (Testing Code, All Paths)
  2. Black Box (Testing All Outputs)
  3. Alpha Beta Testing (Alpha: People in Company Testing Code, Beta: Ordinary Users Testing The Actual Program)
Loops:

  1. FOR...NEXT
  2. WHILE...ENDWHILE
  3. REPEAT...UNTIL
  4. DO...UNTIL
Errors:

  • Syntax Error
  • Arithmetic Error
  • Overflow (Runtime) Error
  • Logical Error


Thanks and do you think questions like these will come?
 
Messages
24
Reaction score
10
Points
13
Best of Luck to everyone for Computing Paper 2 today :) InshaAllah - we all will get through it in excellent grades.

Remember in prayers - :)
ws,
 
Messages
29
Reaction score
11
Points
13
Code:
Public Function algol(x As String)
Dim hr As String
Dim min As String
Dim proxx As String
 
 
total = x
hr = Left(total, 2)
 
min = Right(total, 2)
 
 
proxx = ((Val(hr * 2) + (Val(min / 30) + 1)))
 
End Function
 
'To call the function
Private Sub Command2_Click()
algol ("20:30")
End Sub

Thank you so much but the reply was a bit late and I already come to a similar answer.

Still THANK YOU.

By the way guys how was the paper 22/21/23 ?
 
Messages
188
Reaction score
9
Points
28
Guys I think the GT for paper 22 will be low than in MJ 2011 because it was hard compared to all the 2011 p22's...
 
Messages
42
Reaction score
29
Points
28
Code:
Public Function algol(x As String)
Dim hr As String
Dim min As String
Dim proxx As String
 
 
total = x
hr = Left(total, 2)
 
min = Right(total, 2)
 
 
proxx = ((Val(hr * 2) + (Val(min / 30) + 1)))
 
End Function
 
'To call the function
Private Sub Command2_Click()
algol ("20:30")
End Sub


Actually, this code:
Code:
proxx = ((Val(hr * 2) + (Val(min / 30) + 1)))

Should be:
Code:
proxx = ((Val(hr * 2) + (Val(min DIV 30) + 1)))
DIV is different from /

How did you guys do?
I found it very easy with all the programming.
 
Messages
62
Reaction score
8
Points
18
How was the exam for you? Hope you did well (y)
well dont know how it went...wrote the answers not sure they are write specially the program code writing...dat 8 marks...letter followed by * followed by letter....how did u do?did u do dis 1?
 
Top