Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Create a class diagram to model the relationships between different classes and objects. 2 . Establish a clear connection between the class diagram

1. Create a class diagram to model the relationships between different classes
and objects.
2. Establish a clear connection between the class diagram modeling and the
subsequent Java code implementation.
3. Implement Java code based on the modeled class diagram, applying various
Java concepts you have learned.
This assignment is designed to assess your proficiency in linking theoretical
modeling with practical Java programming, emphasizing your mastery of objectoriented principles throughout. To successfully complete this assessment,
undertake the following tasks:
Question 1
Class Diagram Modelling
Draw a Class diagram to illustrate the course registration activity for full-time
students at Trent University- Computer Science Department all the way to
making payments. The class diagram show class names, attributes and methods.
It should also illustrate the relationship between classes and the multiplicity.
COIS 2240H Software Design & Modelling
Assignment 1 Class Diagram & Java programming
Fall 2023
Below are examples of classes, along with their attributes and corresponding
operations. These examples can assist you in identifying the classes to be
included in the class diagram:
Student Class:
o Attributes: studentID, firstName, lastName, email, phoneNumber, address
o Methods: registerForCourse(course), makePayment(payment)
Course Class:
o Attributes: courseCode, courseTitle, instructor, schedule, capacity,
currentEnrollment
o Methods: addStudent(student), removeStudent(student),
checkAvailability()
Payment Class:
o Attributes: paymentID, amount, paymentDate, paymentMethod
o Methods: processPayment()
Registration Class:
o Attributes: registrationSystemID, coursesOffered
o Methods: displayCourseList(), enrollStudent(student, course),
dropStudent(student, course)

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_2

Step: 3

blur-text-image_3

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

Data Science Project Ideas In Health Care Volume 1

Authors: Zemelak Goraga

1st Edition

B0CPX2RWPF, 979-8223791072

More Books

Students also viewed these Databases questions