array test

this is test 3.35
 Array
(
    [0] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 1
            [LevelID] => 3
            [Rate] => 2.4
        )

    [1] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 3
            [LevelID] => 3
            [Rate] => 0.7
        )

    [2] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 1
            [LevelID] => 1
            [Rate] => 3.35
        )

    [3] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 2
            [LevelID] => 1
            [Rate] => 4.1
        )

    [4] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 3
            [LevelID] => 1
            [Rate] => 0.75
        )

    [5] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 1
            [LevelID] => 2
            [Rate] => 2.45
        )

    [6] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 2
            [LevelID] => 2
            [Rate] => 3.15
        )

    [7] => stdClass Object
        (
            [ExamID] => 2
            [SubjectID] => 17
            [ContentID] => 3
            [LevelID] => 2
            [Rate] => 0.7
        )

)
 
 Array
(
    [0] => 3.35
    [1] => 4.1
    [2] => 0.75
    [3] => 2.45
    [4] => 3.15
    [5] => 0.7
    [6] => 2.4
    [7] => 0
    [8] => 0.7
)
 
Quantities:
 Array
(
    [0] => 10
    [1] => 0
    [2] => 5
    [3] => 2
    [4] => 2
    [5] => 0
    [6] => 0
    [7] => 2
    [8] => 0
)
 
 sum(total) = 48.45
 
productsArray
randomness