The program needs to get the following information from the user:
The calulation of the expected number of kills has two phases. First, the kangaroo density has to be calculated - this is the number of kangaroos per square kilometer. Second, the road surface area has to be calculated, using the average Australian road width which is 10 meters. These are multiplied with the well known roadkill probablility constant, which is 1.47.
Here's what a sample run should look like, with the keyboard input in italics ...
Enter side of square in km : 3.5 Enter roads length in km : 10 Enter number of 'roos : 150 Expected number of kills is : 1.8
The program can be a single main function, or if you're feeling confident, use extra functions appropriately. Don't use any features of C that have not ben explained in class. (1.5%)
Of course ChatGPT can provide an answer that uses bad coding style. Feel free to look at that, and fix it. Here are ideas about good coding style. I have instructed the TAs to be ruthless and vicious about programming style. They will have no mercy - and you will not get the 1.5% unless your code is a thing of elegance and beauty.