How would a uml diagram look like

Assignment Help JAVA Programming
Reference no: EM132430685

How would a UML diagram look like that meets the following requirements?

1. Has a "Course" class as follows...

a. Five private instance variables...

i. courseId, a String

1. At LCC we call this a CRN - like "48765" - and it is unique for each class section.

ii. courseName, a String (i.e. "Introduction to Programming with Java")

iii. courseCode, a String (i.e. "CITP 190")

iv. instructor, an Instructor object representing the teacher of the course

b. A final List<Student> object named "roster" which represents the list of students enrolled in the course

c. Public getters and setters for each instance variable except for roster.

d. A public void method named "addStudent" which takes a Student as a parameter and adds it to the roster. Each time a student is added the roster should be sorted alphabetically by student last name then first name.

e. A public void method named "removeStudent" which takes a String named personId as a parameter and removes any student from the roster who has that personId instance variable.

f. A public "toString" method with no parameters, returning a String which contains all of the following, each on its own line (use "n") in the given order:

i. The Course ID

ii. The Course Name

iii. The Course Code

iv. A blank line

v. The String "Instructor"

vi. The String "-------------------------"

vii. The results of the instructor's toString method.

viii. A blank line

ix. The String "Student Roster"

x. The String "-------------------------"

xi. A separate line for each Student object in the roster showing the output of its toString method.

Reference no: EM132430685

Questions Cloud

Mitigating wireless risk : Suggest two of the risks and two of the benefits associated with the implementation of wireless networks.
Develop a program which allows the user to enter numbers : Develop a program which allows the user to enter numbers into an array. Input will be as follows: The user will enter the total number of integers
Design a rectangle calculator with the basic functions : Java GUI program by using appropriate JLables, JTextFields, Jbuttons, etc. to design a Rectangle Calculator with the following basic functions:
What are the basic structures of a neuron : What are the basic structures/functions of a neuron? How do neurons communicate? What are the major structures of the brain? What is the function of each.
How would a uml diagram look like : How would a UML diagram look like that meets the following requirements?
Permissions and access control : Permissions and access control are given based on what users need and not on what they want. This is called the policy of least privilege.
Discuss the mechanisms and structures of visual learning : Discuss the mechanisms and structures of visual learning and discuss the mechanisms and structures of auditory learning. Discuss the signs and symptoms.
How would i do a uml diagram : How would I do a UML diagram with the following requirements?
Deter information theft : "Deter Information Theft. Describe the Computer Fraud and Abuse Act and how it influenced businesses.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd