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
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
Using variables will help too! Here: <{ variable}><{ }>
<set{ }to(
<( <=> )> <set{ }to( This block will work on your assignment, too. Further explanation, don't be afraid to ask more! Good luck!
Last edited by kingofdallamas (2011-02-23 21:02:35)
Offline