The robotic team has built a robot that collects pollutants and takes them to a collector bin. The bin holds 1000 pieces of trash. The human worker separates the trash into two categories: Recycle and Reuse. Write a program that calculates and states the amount of pieces of pollutants for recycle and the amount for reuse.
Post your solution as a comment.
'This algorithm is written by Tracy Zhao on 16/10/19'
ReplyDelete'The robotic team has created a robot to collect pollutants. At the end of the day, the robot places all the trash in the bin.'
'The human worker separates the trash into re-use or recycle. Write a program that determines and states how many pieces of trash is for re-using and how many is for recycling.'
'The bin holds 1000 pieces.'
reuse=0
recycle=0
for x = 1 to 1000
print"Enter 1 for re-using"
print"Enter 2 for recycling"
input num
if (num=1) then
reuse=reuse + 1
end if
if (num=2) then
recycle=recycle + 1
end if
next
print"The number of pieces for re-using is", reuse
print"The number of pieces for recycling is", recycle
input key
'This algorithm was written by David He on 16/10/2019'
Deletereuse = 0
recycle = 0
for x = 1 to 1000
print "Is the trash for (1)Reuse or (2)Recycle?"
input choice%
if (choice% = 1) then
reuse = reuse + 1
end if
if (choice% = 2) then
recycle = recycle + 1
end if
next
print reuse,"Trash are for reuse"
print recycle,"Trash are for recycle"
input key
'This algorithm was made by Jahred Bodden on 15/10/19'
ReplyDelete'The robotic team has created a robot to collect pollutants.at the end of a day the robot places all the trash in a bin. The human worker seperates the trash into reuse or recycle. Write a program that dtermines and states how many pieces of trash is for reusing and how any is for recycling. The bin holds 1000 pieces.
reuse=0
recycle=0
for x=1 to 5
PRint "If the pollutant is to be reused, enter: 1"
Print "If the pollutant is to be recycled, enter: 2"
Input choice
If (choice=1) then
reuse=(reuse+1)
end if
If (choice=2) then
recycle=(recycle+1)
end if
next
Print "The total be reused is: ",reuse
Print "The total to be recycled is: ",recycle
Input Key
'This algorithm is written by Amirah Kee on Oct.16.2019'
ReplyDeleteRC=0
RU=0
for x = 1 to 1000
Print"Does the current peice of trash fall under re-use or re-cycle?"
Print"Enter RU for re-use and RC for re-cycle:"
Input chc$
if (chc$="RU")then
RU=(RU+1)
else
if (chc$="RC")then
RC=(RC+1)
end if
end if
next
Print "The total amount of pollutants that can be re-used is", RU
Print "The total amount of pollutants that can be re-cycled is", RC
Input Key
'The robotic team has created a robot to collect pollutants. @ the end of a day, the robot places all the trash'
ReplyDelete'in a bin. The human worker separates the trash into re-use or recycle. Write a program that determines and'
'states how many pieces of trash is for re-using and how many for recycling. The bin holds 1000 pieces.'
'This program was written by Ethan Hunt on October 16, 2019.'
A=0
B=0
for x = 1 to 1000
Print " ____________________________________"
Print "|Please select the type of pollutant?|"
Print "| |"
Print "|Enter{1}|Recycle |"
Print "|Enter{2}|Reuse |"
Print "|____________________________________|"
input num%
if (num%=1)then
A=A+1
else
B=B+1
end if
next
Print A,"pieces of pollutant are to be recycled."
Print ""
Print B,"pieces of pollutant are to be reused."
input key
'This algorithm is written by Leanna on October 16,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 separates the trash into reuse or recycle'
'Write a program that determines and states how many pieces of trash is for reusing and how many is for recycling'
'The bin holds 1,000 pieces'
reuse=0
recycle=0
reusable=1
recyclable=1
for x = 1 to 1000
Print"Is the trash reusable or recyclable?"
Input ans$
if(ans$="reusable")then
reuse=reuse+reusable
else
if(ans$="recyclable")then
recycle=recycle+recyclable
end if
end if
next
Print"The amount of trash that will be reused is ",reuse
Print"The amount of trash that will be recycled is ",recycle
Input key
A=0
ReplyDeleteB=0
for x = 1 to 1000
Print" Enter 'A' is the pollutant is used for Re-using and 'B' if the pollutant is used for Recycling"
Input pol$
if ( pol$ = "A" ) then
A=A+1
else
if (pol$="B") then
B=B+1
else
Print"You may have entered a wrong value"
end if
end if
next
Print" The total number of pollutants that were re-used are",A,"and the total number of pollutants that were recycled are",B
input key
'This algorithm was written by Chase Wagner on 16/10/19'
ReplyDeleteRU=0
RC=0
for x = 1 to 1000
print"Enter 1 for re-use-able trash"
print"Enter 2 for recyclable trash"
input num%
if (num%=1) then
RU=RU + 1
end if
if (num%=2) then
RC=RC + 1
end if
next
print"Re-usable trash=", RU
print"Recyclable trash=", RC
print"Encourage others to not use single-use plastics !"
input key
'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 separates the trash into reuse or recycle.write a program that determines and states how many pieces of trash is for reusing and how many is for recycling. the bin holds 1000 pieces'
ReplyDelete'this program was written by diego martin'
reuse=0
recycle=0
for x=1 to 1000
print"is it for reuse or recycle?"
input t$
if(t$="reuse")then
reuse=reuse+1
else
if(t$="recycle")then
recycle=recycle+1
end if
end if
next
print"the amount for reusing is",reuse
print"the amount for recycling is",recycle
input key
'ian haseley 10/16/19'
ReplyDeleterec=0
reu=0
for x = 1 to 3
print"press 1 for recycle and 2 for reuse"
input num
if (num=1)then
recycle=(rec+1)
if (num=2)then
reuse=(reu+1)
end if
end if
next
print "the amount of reuse is",reuse
print "the amount of recycle is",recycle
input key
'This algorithm is written by Dhwani on October 16th, 2019'
ReplyDeleteuse = 0
cycle = 0
for x = 1 to 5
Print"Is this item a reuse or recycle pollutant?"
input ans$
if(ans$ = "use")then
use = (use + 1)
else
if(ans$ = "cycle")then
cycle = (cycle + 1)
end if
end if
next
Print"The amount of re-use pollutants are", use
Print"The amount of re-cycle pollutants are", cycle
input key
'This was written by Hannah Zetina on 10/16/2019'
ReplyDelete'the robotic team has created a robot to collect pollutants.At the end of a day the robot places all the trash in a bin.the human worker separates the trash into reused or recycle. write a program that determines and states how many pieces of trash is for reusing and many for recycling. the bin hold 100 pieces.
max=0
for x=1 to 4
Print"Enter (1) if you put a piece of trash in reusable bin"
Print"Enter (2) if you put a piece of trash in the recycling bin"
input ans
if (ans=1) then
ru= max+1
else
if (ans=2)then
rc= max+1
end if
end if
next
print"The amount of trash in the reusable bin is",ru
Print"The amount of trash in the recycling bin",rc
input key
'This algorithm was written by Jamison Jones on 10/16/19'
ReplyDelete'The robotic team has created a robot to collect poll at the end of a day the robot places all the trash in a bin the human worker seperates the trash into reuse or recycle. Write a programs the determines and states how many pieces of trash is for reusing and recycling the bin hold 1,000 pieces'
trash=0
trash1=0
for x= 1 to 3
Print"Is this from the reuse pile"
input re$
Print "How much pieces is it?"
input re
Print"Is this from the recycle pile"
input rc$
Print "How much pieces is it?"
input rc
if(re$="yes" and rc$="no") then
trash=re+0
else
if(re$="no" and rc$="yes") then
trash1=rc+0
end if
end if
next
Print"The total of reusing trash is",trash
Print"The total of recycling trash is",trash1
input key
'This program was written by Harriel Smith on 16.10.19'
ReplyDeleteru=0
rc=0
for x=1 to 1000
Print"Please enter a if the pollutants are to be reused"
Print"Please enter b if the pollutants are to be recycled"
Input c
if(c=a)then
reuse=(reuse+1)
else
if(c=b)then
recycle=(recycle+1)
end if
end if
next
Print"The total amount of garbage to be reused is", reuse
Print"The total amount of garbage to be recycled is", recycle
input key
'This algorithm was done by Aeden Salazar on 10/16/19'
ReplyDelete'The robotic team has created a robot to collect pollutants and the end of a day the robot places all the trash in a bin. The human worker seperates the trash into reuse or recycle.'
' Write a program that determines and states how many pieces of trash is for reusing and how many is for recycling. The Bin holds 1000 pieces'
Max=0
total=0
for x = 1 to 1000
Print "Select a pollutant (1.Recycle, 2. Re-use)"
input num%
if (num%=1) then
max=max+1
else
if (num%=2) then
total=total+1
end if
end if
next
Print "The amount to recycle is", max
Print "The amount to re-use is", total
input key
'This was written by Chahatt Chawla on 16/10/19'
ReplyDeleteA=0
B=0
for x = 1 to 1000
Print" Enter 'A' is the pollutant is used for Re-using and 'B' if the pollutant is used for Recycling"
Input pol$
if ( pol$ = "A" ) then
A=A+1
else
if (pol$="B") then
B=B+1
else
Print"You may have entered a wrong value"
end if
end if
next
Print" The total number of pollutants that were re-used are",A,"and the total number of pollutants that were recycled are",B
input key
'this algorihtm was written by kristie roberts on october 16.2019'
ReplyDeletereuse= 0
recycle= 0
for x= 1 to 1000
print"enter if you can reuse or recycle"
input x$
if(x$="reuse")then
reuse=reuse+1
else
if(x$="recycle")then
recycle=recycle+1
end if
end if
next
print"the amount of trash that can be reused is",reuse
print"the amount of trash that can be recycle is",recycle
input key
'this program was writen by shayna on 10/16/19'
ReplyDeletereused=0
recycled=0
for x= 1 to 1000
print"Enter amount of garbage to be reused"
input q$
print"enter amount of garbage to be recycled"
input w$
if (q$="reused") then
reused= reused + 1
else
if (w$="recycled") then
recycled= recycled + 1
end if
end if
next
print "The total amount of garbage to be reused is",q$
print "The total amount of garbage to be recycled is",w$
input key
'This algorthim is wriiten by Joslyn Kee on 10/16/19'
ReplyDeleteRecycle=0
Reuse=0
for x = 1 to 3
Print"Enter 1 for re-use and 2 for re-cycle:"
Input num$
if (num$="reuse")then
reuse=(reuse+1)
else
if (num$="recycle")then
recycle=(recycle + 1)
end if
end if
next
Print "The total amount of re-used is",reuse
Print "The total amount re-cycled is", recycle
Input Key
'This algorithm was written by Hailey Diaz on October 16, 2019"
ReplyDelete'The robotic team has created a robot to correct pollutants. At the end of the day the robot places all the trash in a bin. The human worker separates the trash into re-use or recycle. Write a program that determines and states how many pieces of trash is for re-using and how many is for recycling. The bin holds 1,000 pieces.
ru = 0 'stands for re using'
rc = 0 'stands for recycling'
for x = 1 to 2
Print "Enter if your piece of trash is to re-use or recycle"
Input trash$
if(trash$="re-use")then
ru = ru+1
end if
if(trash$="recycle")then
rc = rc+1
end if
next
Print "The amount of pieces for re-use are" ,ru
Print "The amount of pieces for recycle are" ,rc
Input Key
'This algorthim is wriiten by Joslyn Kee on 10/16/19'
ReplyDeleteRecycle=0
Reuse=0
for x = 1 to 100
Print"Enter 1 for re-use and 2 for re-cycle:"
Input num$
if (num$="reuse")then
reuse=(reuse+1)
else
if (num$="recycle")then
recycle=(recycle + 1)
end if
end if
next
Print "The total amount of re-used is",reuse
Print "The total amount re-cycled is", recycle
Input Key
'The robotic team has created a robot to collect polutents at the end of the day'
ReplyDelete'the robot place all the trash in the bin the human worker separates the trash'
'into re-use or recycle write a program that determins of states how many pieces'
'of trash the bin holds 1000 pieces'
max=0
for x= 1 to 1000
print"enter number of trash"
input trash$
print"enter your robots job"
input trash
if(trash >max)then
max=1000
hightest$ = trash
end if
next
print "the highest number of trash in the bin",highest$
input key
'This algorithm is written by Kent Haylock 16/10/19'
ReplyDeleteprint "Save the turtles"
print "______-----______"
print " | |"
print " | |"
print " | |"
print " | |"
print " | ## ##### |"
print " |__####__##|"
recycle = 0
reuse = 0
for x = 1 to 1000
print "Is the piece of trash recyclable or reusable? Type recycle or reuse."
input typ$
If (typ$ = "recycle") then
recycle = recycle + 1
else
If (typ$ = "reuse") then
reuse = reuse + 1
end if
end if
next
print" The amount of trash that can be recycle is", recycle
print" The amount of trash that can be reuse is", reuse
Input Key
recycle=0
ReplyDeletereuse=0
for x= 1 to 5
Print "Enter if recycled or re-used"
input a$
if (a$= "recycled") then
recycle= recycle+1
else
if (a$="re-used") then
reuse=reuse+1
end if
end if
next
Print "Your amount recycled is", recycle
Print "Your amount re-used is", reuse
Input Key
recycle=0
ReplyDeletereuse=0
for x= 1 to 1000
Print "Enter if recycled or re-used"
input a$
if (a$= "recycled") then
recycle= recycle+1
else
if (a$="re-used") then
reuse=reuse+1
end if
end if
next
Print "Your amount recycled is", recycle
Print "Your amount re-used is", reuse
Input Key
'This algorithm is written by Perlita Giron on Oct. 16,2019'
ReplyDeleterecycle=0
reuse=0
for x= 1 to 5
Print "Enter if recycled or re-used"
input a$
if (a$= "recycled") then
recycle= recycle+1
else
if (a$="re-used") then
reuse=reuse+1
end if
end if
next
Print "Your amount recycled is", recycle
Print "Your amount re-used is", reuse
Input Key
'This algorithm was written by Jamison Jones on 10/16/19'
ReplyDelete'The robotic team has created a robot to collect poll at the end of a day the robot places all the trash in a bin the human worker seperates the trash into reuse or recycle. Write a programs the determines and states how many pieces of trash is for reusing and recycling the bin hold 1,000 pieces'
trash=0
trash1=0
for x= 1 to 1,000
Print"Is this from the reuse or recycle pile"
input ans$
if(ans$="reuse")then
trash=trash+1
else
if(ans$="recycle")then
trash1=trash+1
end if
end if
next
Print"The total of reusing trash is",trash
Print"The total of recycling trash is",trash1
input key
'This algoritm is written by laurie lopez on 16/10/19'
ReplyDelete'The robatic team has created a robot to collect polutants at the end of a day the robot places all the trash in a bin, the human worker seperates the trah into reuse or recyle write a progam that determines and states how many pieces of trash is for reusing and how many is for recyling the bin holds 1000 pieces'
Recyle=0
Reused=0
for x= 1 to 1000
Print "State if the peieces will be Recyle or Reuse"
Input Ans$
If(Ans$="Recyle") Then
Trash1=Recylce + 1
else
If(Ans$="Reuse") Then
Trash2=Reused + 1
end if
end if
next
Print "The amount of pices of pollutants for recyle is", Trash1
Print "The amount of pieces of pollutants for reuse is", Trash2
Input Key
'This algorithm was written by Victoria Usher on the 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 separates the trash into re-use or recycle. Write a program that determines and states how many pieces of trash is for re-using and how many is for recycling. The bin holds 1000 pieces'
Print"Hey there!"
recycle=0
reuse=0
for x=1 to 5
Print "Is your material recyclable or reusable?"
input r$
if (r$="recyclable") then
recycle=recycle+1
else
if (r$="reusable") then
reuse=reuse+1
end if
end if
next
Print "The total amount of recyclable materials is ", recycle
Print "The total amount of reusable materials is ", reuse
Print "Thank you for using our service! Remember to keep the earth clean."
input key