Formulate classes and use objects to store and compute tabular information.
A small grocery in your neighbourhood needs to track the items that it carries. An item is either perishable or non-perishable.
Apply the principles of object-oriented design in solving the following problem.
A module has a code, a name and has one or more assessment components. For each assessment component, the component type, the minimum required score for passing the component and the weightage are recorded.
(a) Design and develop a simple graphical user interface (GUI) to allow two players to play a guessing game with event handling.