Badger2008
Programmer
% internal_course( Type, ListOfApplicantsResults)
% -----------------------------------------------
internal_course( theory, [(anderson,68), (caruthers,88), (framlin,22), (grant,58),
(parker,45), (theakston,45), (walters,71)
]
).
internal_course( practical, [(anderson,79), (caruthers,84), (framlin,34), (grant,61),
(parker,42), (theakston,56), (walters,67)
]
).
I am trying to write a predicate that basically takes the calculated percentage for the above courses. But the practical course is worth 1/3 of the final grade and the internal is worth 2/3 of it.. I have only just started prolog and this seems very hard to me.
K
% -----------------------------------------------
internal_course( theory, [(anderson,68), (caruthers,88), (framlin,22), (grant,58),
(parker,45), (theakston,45), (walters,71)
]
).
internal_course( practical, [(anderson,79), (caruthers,84), (framlin,34), (grant,61),
(parker,42), (theakston,56), (walters,67)
]
).
I am trying to write a predicate that basically takes the calculated percentage for the above courses. But the practical course is worth 1/3 of the final grade and the internal is worth 2/3 of it.. I have only just started prolog and this seems very hard to me.
K