Project – Dino meal planner
Dinosaurs are not easy animals to keep. This is very advanced pet ownership. The right nutrition is difficult to manage, but it’s vital to their health and well-being. Therefore, you are asked to create a system that can manage the feeding schedule of our various dinosaur residents.
The project’s primary goal is to create a program that calculates the meal portions and feeding times for each dinosaur. Since we haven’t covered arrays yet, we’ll focus on a single dinosaur for now.
Here’s how we can do it:
- Start by declaring a variable to hold the current time; let’s say it’s an integer and it goes from
0
(midnight) to23
(last hour of the day). - Define variables for each dinosaur species with different feeding times. For example, T-Rex could eat at 8 (morning), 14 (afternoon), and 20 (evening), while the Brachiosaurus could eat at 7 (morning), 11 (mid-morning), 15 (afternoon), and 19...