Qualification > Miscellaneous
Computer studies help HERE only !!
CrEaTuRe_X:
http://www.freeexampapers.com/Dndex.php?d=SUdDU0UvQ29tcHV0ZXIgU3R1ZGllcy9DSUUvMjAwNSBKdW4=&catagory=
This is the paper ( may/june 05.)
Last question
This is what I wrote, Need someone to tell me weather correct or not.Thankyou.
Set "Distinction" "Mert" "Pass" "Fail"
While mark <= 25 do
Input mark
If mark >69 than "Distinction"
if mark >60 AND <69 than "Mert"
If mark >50 AND <59 than "Pass"
End if
Print Distinction Merit Pass Fail
astarmathsandchemistry:
--- Quote from: CrEaTuRe_X on May 24, 2009, 01:42:49 pm ---
http://www.freeexampapers.com/Dndex.php?d=SUdDU0UvQ29tcHV0ZXIgU3R1ZGllcy9DSUUvMjAwNSBKdW4=&catagory=
This is the paper ( may/june 05.)
Last question
This is what I wrote, Need someone to tell me weather correct or not.Thankyou.
Set "Distinction" "Mert" "Pass" "Fail"
While mark <= 25 do
Input mark
If mark >69 than "Distinction"
if mark >60 AND <69 than "Mert"
If mark >50 AND <59 than "Pass"
End if
Print Distinction Merit Pass Fail
--- End quote ---
i am sorry but this is completely wrong.......correct answer.....................
Ghost Of Highbury:
i guess its this way
-------------------------------
we take sum, average --> for average...
and as the markscheme says...min and max...too,,,,to compare the values and swap them accordingly..
we limit count to 24 as there are 24 hours in a day..and they want the readings hourly
the markscheme sets the min too 100 and max to 0....because a normal temperature reading for a day (0-50) will fall atlesast in 1 range
============================
sum = 0
min = 100
max = 0
count = 1 (initially)
let the temp be x
for (count=1;count<=24;count +1)
{
input x
F= (x*1.8) + 32
sum = sum + F
if F <min, min = F
if F >max, max = F
(note theres no else)
increment count
}
average = sum/24
print average, max, min
astarmathsandchemistry:
--- Quote from: eddie_adi619 on May 24, 2009, 01:49:11 pm ---i guess its this way
-------------------------------
we take sum, average --> for average...
and as the markscheme says...min and max...too,,,,to compare the values and swap them accordingly..
we limit count to 24 as there are 24 hours in a day..and they want the readings hourly
the markscheme sets the min too 100 and max to 0....because a normal temperature reading for a day (0-50) will fall atlesast in 1 range
============================
sum = 0
min = 100
max = 0
count = 1 (initially)
let the temp be x
for (count=1;count<=24;count +1)
{
input x
F= (x*1.8) + 32
sum = sum + F
if F <min, min = F
if F >max, max = F
(note theres no else)
increment count
}
average = sum/24
print average, max, min
--- End quote ---
oh so you just put the counter to 24 and do the rest like usual??
thanks man really helped
+rep :D
Ghost Of Highbury:
hey creatur x ... its not completely wrong..ur logic is still correct..
only minor changes required..
========
Set m, p , d, f
While x <= 25 do (don't use mark again here, use another variable like count)
Input mark
If mark >69 then then d=d+1
else if mark >= 60 AND <=69 then m=m+1
else If mark >=50 AND <=59 then p=p+1
else f=f+1
print m, p, d, f
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version