Junior 1 Test 2 - Theory - Day 9
Junior 2 Test 2 - Theory - Day 8
Due to an unexpected change in schedule for Day 9, the test will be a Short Test, meaning that it is timed for 40 minutes or less.
The outline is updated as follows:
Part 1 - Multiple Choice (5 points)
5 questions
Part 2 - Structured Questions (45 points)
1 theory question based on control structures (5 points)
2 conditional algorithms (20 points each)
'This algorithm is done by Brianna Tejada 16/10/2019'
ReplyDelete'The robotic team has created a robot to collect pollutants at the end of the day the robot places all the trash in a bin, the human worker seperates the trash into re-used or recycle write a program that determines and states how many peices of trash is for re-usuing and how many is for recycling, the bin holds 1000 peices.
reu=0
rec=0
for x=1 to 4
print"Enter (1) for re-usable and (2) for recycle"
input num1
if (num1=1) then
reu=reu+num1
else
if (num1=2) then
rec=rec+num1
end if
end if
next
print" Amount of reuse",reu
print"Amount of recycles",rec
input key
'This algorithm is done by Brianna Tejada 16/10/2019'
ReplyDelete'The robotic team has created a robot to collect pollutants at the end of the day the robot places all the trash in a bin, the human worker seperates the trash into re-used or recycle write a program that determines and states how many peices of trash is for re-usuing and how many is for recycling, the bin holds 1000 peices.
reu=0
rec=0
for x=1 to 4
print"Enter (1) for re-usable and (2) for recycle"
input num1
if (num1=1) then
reu=reu+num1
else
if (num1=2) then
rec=rec+num1
end if
end if
next
print" Amount of reuse",reu
print"Amount of recycles",rec
input key
'This algorithm is done by Brianna Tejada 16/10/2019'
ReplyDelete'The robotic team has created a robot to collect pollutants at the end of the day the robot places all the trash in a bin, the human worker seperates the trash into re-used or recycle write a program that determines and states how many peices of trash is for re-usuing and how many is for recycling, the bin holds 1000 peices.
reu=0
rec=0
for x=1 to 4
print"Enter (1) for re-usable and (2) for recycle"
input num1
if (num1=1) then
reu=reu+num1
else
if (num1=2) then
rec=rec+num1
end if
end if
next
print" Amount of reuse",reu
print"Amount of recycles",rec
input key