- Messages
- 11
- Reaction score
- 0
- Points
- 11
hello sir/madam,
can i get some tips or expected questions on computer studies which is on thursday 28 october.
can i get some tips or expected questions on computer studies which is on thursday 28 october.
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)
mimmi said:Guys! Whats the code in algorithm to arrange a set of numbers in ascending or descending? i know there is an easier way than writing 100's of line which will make the examiner :evil:
mimmi said:Azheen!! O_O
What if it's a 1000 numbers >_>
And what's the code for making the program wait for let's say 24hrs?
axhynic said:mimmi said:Guys! Whats the code in algorithm to arrange a set of numbers in ascending or descending? i know there is an easier way than writing 100's of line which will make the examiner :evil:
Input A,B,C,D
If A>B then
T=B
B=A
A=T
Endif
If A>C then
T=C
C=A
A=T
Endif
If A>D then
T=D
D=A
A=T
Endif
If B>C then
T=C
C=B
B=T
Endif
If B>D then
T=D
D=B
B=T
Endif
If C>D then
T=D
D=C
C=T
Endif
Output A,B,C,D
Thats for acceding order, i think
examman said:try putting loops ... btw, it wont come for 1000 numbers
loops such as
For Counter,
While Do, And
Repeat UNTIL
Use the forcounter its the easiest.... for instance to find the total number of negeative numbers in 1000 numbers below is the algorithim
Neg = 0
For Counter = 1 to 1000
Input Number
If Number < 0 THEN
Neg = Neg + 1
Next Counter.
Output Neg.
then ask me anything regarding algorithms
btw, im doing my olevel next year im in year 9 xD
bamteck said:It was a decent paper ! Isn't it?
for next statement is best 1mimmi said:Guys! Whats the code in algorithm to arrange a set of numbers in ascending or descending? i know there is an easier way than writing 100's of line which will make the examiner :evil:
For almost 10 years, the site XtremePapers has been trying very hard to serve its users.
However, we are now struggling to cover its operational costs due to unforeseen circumstances. If we helped you in any way, kindly contribute and be the part of this effort. No act of kindness, no matter how small, is ever wasted.
Click here to Donate Now