Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Exercise: Petting zoo food cost Interstellar explorers find an Earth-like planet

ID: 3821106 • Letter: E

Question

Exercise: Petting zoo food cost

Interstellar explorers find an Earth-like planet orbiting FH-3299. Some cute, harmless creatures have evolved there. You decide to set up a petting zoo, with three types of creatures: skwilks, zambos, and drufts.

The creatures eat earthworms and paperclips. Each week:

Skwilks eat 1.8 kilos of earthworms, and 5.3 kilos of paperclips

Zambos eat 2.3 kilos of earthworms, and 6.2 kilos of paperclips

Drufts eat 3.9 kilos of earthworms, and 7.7 kilos of paperclips

A kilos of worms costs $4.52. A kilo of paperclips costs $7.55.

Write a program to compute the weekly cost of feeding your critters, given the number of each type of critter you have in the zoo. Here’s a screenshot:

Round the cost to the neatest cent. It’s OK to leave off the last digit if it’s zero. Check the rounding numbers hint; it might be useful.

All inputs should be numeric, and not less than zero. Your program should show an error message and stop when there’s an error. For example:

Your program can stop immediately when it detects an error, or show all applicable error messages and then stop. Your choice.

You must use subroutines. Use three at least: input, processing, and output. You may use more if you want.

The usual coding standards apply.

1 Petting zoo weekly food cost 112 3 Skwilks 8 4 Zambos 5 Drufts Run 9 Earth worms 59.5 kilos. 10 Paperclips 151.7 kilos 11 12 Total cost: 14.14.28 13

Explanation / Answer

Dear Student,

The question format was not visible properly....I thought it is in C or C++ programming Language. To check the proper format i submitted the question just after choosing the question. Now i can see the proper format.

But this question is from Excel Subject. But i do not have any knowledge in excel.

I am really sorry..!!!

Kindly upload the question again, so that other experts may help you.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote