question archive In this section we will develop our Score ADT that accepts a list of packets and returns a list of packets with their respective scores
Subject:Computer SciencePrice: Bought3
In this section we will develop our Score ADT that accepts a list of packets and returns a list of packets with their respective scores.
The constructor has the following interface:
makeScore : [packets] -> ["SCORE",[]]
A Score has the following format:
["SCORE", [(Packet, score), (Packet, score)]]
A list with a "SCORE" tag in the first position and a list in the first index position that contains the Packet score tuples.
Calculate the packet score based on the points assigned to each suspicion metric given in part three.