Write a short program in java to iterate over a structure and print out the names of all users which have a score less than 70.
At the end of the structure, also print out the average score of all users who scored 70 or higher.
Assume a global function/procedure called print which prints all parameters passed to it and that the structure is called
Structure.
Structure Prototype = [[Name1, Score1], [Name2, Score2], …]
Example Structure = [[‘Tim’, 98], [‘Tom’, 80], [‘Mike’, 50], [‘Jason’, 25]]
Example Output =
Mike
Jason
89
Thanks
Albert