Post-lab - Lab (3)



Write a C++ program that displays in exact number the smallest and the largest number of trees per square miles in a region.  In order to do this, you will ask the user to first input a number to tell the program which one of the following combinations they will use for the two values that they will enter, use choice:
        1     when both the smallest and the largest numbers are integers
        2     when the smallest number is an integer and the largest number is a float
        3     when the smallest number is a float and the largest number is an integer
        4    when both numbers are float
        Any other option is invalid, display a message, and terminate the program.

Here are the four scenarios you may face depending on the choice that is made previously:
    1) If both numbers are integers, then you simply call a function to display them as they were entered.
    2) If the first number, the smallest number, was entered with decimal point, you want to round the number down, then display both values.
    3) If the second number, the largest number, was entered with decimal point, you want to round that up, then display the both values.
    4) If both the smallest and largest numbers were entered with decimal, then you want to round the first one down and the second one up, then display the values.

You are required to use function name overloading to write 4 functions that take care of each one of the four scenarios.