• 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)

COMPUTER STUDIES 7010 paper 22

Messages
102
Reaction score
92
Points
38
wow. paper 12's algorithm was nowhere near paper 13's algorithm question. :/
unlike previuos papers we had 2 write two algorithms for 8 marks.....previous years there was 1 question 6 marks
but it was really challenging ...lucky that i understood it...how wat was ur algorithm questions
?
 
Messages
12
Reaction score
1
Points
13
something like that:
A cafe sells the following items.
bun $0.50
coffee $1.20
cake $1.50
sandwich $2.10
dessert $4.00

Write an algorithm, using pseudocode or a program flowchart only, which:
- input each item for the day
- ends with the item "end"
- adds up the total amount of item taken per day
- output the total takings (add up the price of all the items) per day
- output which item has the highest takings on that day. [6]

I'm not sure if it is easy for you all but I do find it slightly tougher than all the previous years because of the lengthy requirements (especially the last one).
I did it this way: http://pastie.org/pastes/5118823
 
Messages
16
Reaction score
4
Points
3
Total=0
for N= 1 to 50
in put D1 ,D2, D3, D4
IF(D1=D4) AND (D2=D3) THEN , total=total+1
Next N
print total
percentage=total/50 *100

Yeah me too, I did the same thing! Overall I think i did very well apart from bitstreaming and bitmap thing...Ianswered but I am not sure if its correct...Insha Allah I will get an A* and you guys also :)
 
Messages
71
Reaction score
74
Points
28
how was your answers?
Bit streaming:
-Send of data slow, part by part, and it can be read even if not completely downloaded.
-Used in printer(buffer)
Algo:
1.
greater1000=0, less1000=0
for i=1 to #
Let X input number i
if X < 1000 then
less1000= less1000 + 1
else if X >1000 then
greater1000= greater1000+1
else if X= -1 then
i=#
end if
Next
Output greater1000,less1000


2.
palin=0
for i=1 to 50
Let D1 input the first number i
Let D2 input the second number i
Let D3 input the third number i
Let D4 input the forth number i
If D1=D4 AND D2=D3 then
palin=palin+1
end if
Next
Output ((palin/50)*100)



Pixels:
1. Not the adequate number of pixels
2. Monitor

[I don't remember exactly the questions/answers, just ask me i will tell you the answers.]

Akr!...
 
Messages
102
Reaction score
92
Points
38
i wrote sumthing lyk the file will jus b compressed hence it still retains the quality
me too.wrote about compressing and decompressing.....my teacher discussed about MP3 stuffs only once
 
Messages
102
Reaction score
92
Points
38
Yeah me too, I did the same thing! Overall I think i did very well apart from bitstreaming and bitmap thing...Ianswered but I am not sure if its correct...Insha Allah I will get an A* and you guys also :)
yah..lets hope so
 
Messages
102
Reaction score
92
Points
38
Bit streaming:
-Send of data slow, part by part, and it can be read even if not completely downloaded.
-Used in printer(buffer)
Algo:
1.
greater1000=0, less1000=0
for i=1 to #
Let X input number i
if X < 1000 then
less1000= less1000 + 1
else if X >1000 then
greater1000= greater1000+1
else if X= -1 then
i=#
end if
Next
Output greater1000,less1000


2.
palin=0
for i=1 to 50
Let D1 input the first number i
Let D2 input the second number i
Let D3 input the third number i
Let D4 input the forth number i
If D1=D4 AND D2=D3 then
palin=palin+1
end if
Next
Output ((palin/50)*100)



Pixels:
1. Not the adequate number of pixels
2. Monitor

[I don't remember exactly the questions/answers, just ask me i will tell you the answers.]

Akr!...
i wrote the algorithm kid of like:
abovethousand=0
belowthousand=0
input N
while (N>0) do
if(N>1000) then
abovethousand=abovethousand+1
if(N<1000) then
belowthousand=belowthousand+1
end while
output abovethousand, belowthousand
 
Messages
102
Reaction score
92
Points
38
Bit streaming:
-Send of data slow, part by part, and it can be read even if not completely downloaded.
-Used in printer(buffer)
Algo:
1.
greater1000=0, less1000=0
for i=1 to #
Let X input number i
if X < 1000 then
less1000= less1000 + 1
else if X >1000 then
greater1000= greater1000+1
else if X= -1 then
i=#
end if
Next
Output greater1000,less1000


2.
palin=0
for i=1 to 50
Let D1 input the first number i
Let D2 input the second number i
Let D3 input the third number i
Let D4 input the forth number i
If D1=D4 AND D2=D3 then
palin=palin+1
end if
Next
Output ((palin/50)*100)



Pixels:
1. Not the adequate number of pixels
2. Monitor

[I don't remember exactly the questions/answers, just ask me i will tell you the answers.]

Akr!...
how does saving music in MP3 format retains the music quality?
 
Messages
71
Reaction score
74
Points
28
i wrote the algorithm kid of like:
abovethousand=0
belowthousand=0
input N
while (N>0) do
if(N>1000) then
abovethousand=abovethousand+1
if(N<1000) then
belowthousand=belowthousand+1
end while
output abovethousand, belowthousand
You will get about 3 points
1 pt -Loop
1 pt - calculate above 1000 and below 1000
1 pt - output
1 pt missing is its ending!
 
Messages
71
Reaction score
74
Points
28
how does saving music in MP3 format retains the music quality?
I wrote this (not sure its good) :
- While converting into MP3, this special format compress the song and it removes the excess of space not needed.
- While doing this, it removes the background noise cause by the Space free and it also concentrate the music sound.
 
Messages
102
Reaction score
92
Points
38
i
You will get about 3 points
1 pt -Loop
1 pt - calculate above 1000 and below 1000
1 pt - output
1 pt missing is its ending!

my teacher said that it is not necessary to include ''end" n ''start''..and even in mark schemes it is not included.
 
Messages
71
Reaction score
74
Points
28
i


my teacher said that it is not necessary to include ''end" n ''start''..and even in mark schemes it is not included.

-That's where many failed!
- Just look at your algo and its good =D ... Did not see the "While (N>0) do" --"
So, its full markS!
 
Messages
248
Reaction score
132
Points
53
is there anybody here who has done the question on images, bit streaming and blablabla at school???
 
Messages
248
Reaction score
132
Points
53
i


my teacher said that it is not necessary to include ''end" n ''start''..and even in mark schemes it is not included.
yeah its true otherwise someone who does not know how to do algorithm at all will just put start and end and he will get marks!!!!
 
Messages
102
Reaction score
92
Points
38
is there anybody here who has done the question on images, bit streaming and blablabla at school???
i never did.. but bit streaming+ MP3 is included in the syllabus (teachers never taught that, [worth to be blamed ) ,,but not pixels or resolution :mad: this year they have changed the question patterns a lot (not only in computer studiessyllabus.png ) ..but general knowledge might give me a mark :sneaky:
 
Top