This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-21 19:24:45

bayshoretan
New Scratcher
Registered: 2011-02-21
Posts: 2

help on how to do this assignment

1. Write a program to protect zoo animals during extreme winter weather by purchasing gloves, boots, and
hats to keep the animals warm. The animals' needs are as follows:
elephants: four boots, one hat
centipedes: 100 boots, two hats (one for each end)
egrets: two boots, one hat
octopuses: eight gloves, one hat
monkeys: two gloves, two boots, one hat
Current prices for the items to be purchased are gloves $7, boots $27, hats $8.
Your program should ask how much money has been earmarked by the zoo for clothing and how many
elephants, centipedes, egrets, octopuses, and monkeys live in the zoo. Calculate how much money is
needed to purchases the items needed and how much is left in the clothing fund after all the animals are
supplied with their winter outfits. (If the remaining number is negative, the zoo must close down for lack of
funds.) Have a sprite report the final number.

Offline

 

#2 2011-02-22 16:18:22

pika100chu
Scratcher
Registered: 2009-07-26
Posts: 500+

Re: help on how to do this assignment

If it's a scratch project for a class or something, you shouldn't be asking on the forums. Anyways, these blocks will be helpful:[blocks]((  <+>  ))((  <*>  ))((  <->  ))((  </>  ))[/blocks]

Offline

 

#3 2011-02-23 21:00:40

kingofdallamas
Scratcher
Registered: 2010-03-07
Posts: 500+

Re: help on how to do this assignment

Using variables will help too! Here:   <{ variable}><{  }>
              <set{  }to(

         <(  <=>  )> <set{  }to( This block will work on your assignment, too.  smile  Further explanation, don't be afraid to ask more! Good luck!

Last edited by kingofdallamas (2011-02-23 21:02:35)


http://i853.photobucket.com/albums/ab99/Gilgamesh1192/Ninja%20Saga/ElementalJutsus2.gifhttp://i27.photobucket.com/albums/c192/BoomKaTish/GIF/thgfhgfhfhgf.gif
ハロー友だち!

Offline

 

Board footer