Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been requested to produce a simple student registration system that has the following functionality It can represent student details: name, id number, course,

You have been requested to produce a simple student registration system that has the following functionality

It can represent student details: name, id number, course, year

It can represent module details: title, module code, associated courses

Each student can register for several modules

For each module that the student has registered, a mark can be entered

Each module should be able to print out the list of students that have registered for it.

Each module should also be able to print out a list of students ranked in descending order by the mark they received

(a) Identify the Java classes you would need to build a simple version of this application. Explain your answer. [5]

(b) Identify the relationships between these classes. Explain your answer [5]

(c) Identify the Java interface you could use to easily sort the student marks [2]

(d) Write the Java code to illustrate the following scenario [18]

Three Students register for three different modules

Each student then receives a grade for each module

Each module prints out a list of the students registered for it in descending order of their mark

Marks for this question will be awarded based on

(i) appropriate use of OOP programming features: abstraction, inheritance, polymorphism, encapsulation

(ii) appropriate use of programing principles: e.g. open-closed principle, single responsibility principle, referential integrity, lack of redundancy, correct use of access modifiers (public, private, protected), use of getter and setter methods

(iii) the functionality of your code: compil

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions