Exercises
Mesozoic Eden is doing great. The dinosaurs are healthy and the guests are happy. Now that you have some new skills, let’s go ahead and perform slightly more complicated tasks!
- The caretakers want to be able to keep track of dinosaur weights. It’s your task to write a program that calculates the average weight of two dinosaurs. This will help our team of nutritionists in planning the correct food portions.
- Proper nutrition is essential for the health of our dinosaurs. The caretakers want to have a rough guideline of how much to feed a dinosaur. Write a program that determines the amount of food required for a dinosaur based on its weight. You can come up with the amount of food needed per weight unit of the dinosaurs.
- For our park, we need to have a leap year checker. In our commitment to scientific accuracy, use the modulus operator to determine if the current year is a leap year. We want to make sure our calendar-themed exhibits are always...