Pages: 1
Topic closed
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
Are you planning on making this? I suggest working on something a bit less ambitious until you think you can do this. It also helps to view other projects of the similar type for ideas and how to work the blocks.
Offline
Topic closed
Pages: 1