A computer program processes an array of 10 REAL numbers.
It counts how many of them should be rounded down and how many of them should be rounded up.
For example, if a number has a decimal part of 0.5 or less it will be rounded down eg 12.3, 17.5, 16.1.
Otherwise it will be rounded up eg 8.8, 9.6, 11.9
Here is the code. It doesn't work! Fix it!
Note: for the set of data in the sample, your code should produce exactly the same result.
Data Types
Make sure you know what kind of data type a variable is supposed to store.
This is necessary if you are comparing data in variables. You can't meaningfully compare an INTEGER with a STRING and many programing languages will not execute a program that tries to do it!