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

  String as its parameter and returns the length

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.A word is a sequence of one or more non-space characters (any character other than the space character).

  Change the implementation of the gettax method

Change the implementation of the getTax method in the TaxReturn class, by setting a variable rate1limit, depending on the marital status. Then have a single formula that computes the tax, depending on the income and the limit.

  1 linked listsin this problem you will write a class that

1 linked listsin this problem you will write a class that implements an ordered list of strings. your class will able

  Finding java code error

Indicate in the given code segment if an error occurs. If so, point to whether it is syntax, runtime or logic and how you would fix it.

  What is the method for broadcasting an intent

What is the method for broadcasting an Intent? What is the method for saving the Activity state? What is the method for retrieving application assets? What is the method for accessing application preferences?

  Method level comment

What type of information should be included in a method level comment?

  The department of community affair- jail report

The Department of Community Affairs (DCA) for the State of Georgia performs many functions including gathering statistics and doing research. DCA provides a monthly jail report that provides some interesting information about jails in the state.

  Application that converts u.s. dollar values to euro values

Help with writing an application that converts U.S. dollar values to euro values. The application should have methods for getting user input and doing the conversio ...there is moreshow problemI need help with this:

  Read the numbers into an array and calculate the average

Use Scanner to parse numbers. Use a FileReader to read numbers from file Read the numbers into an array. Calculate the average, min and max

  Disadvantages of sequential and random access files

What are the advantages and disadvantages of sequential and random access files?

  Calculate the percentage wins of a team

Write a program that will calculate the percentage wins of a team. The program will input the number of wins and losses that a team acquired during a season. The wins should be input in a parameter-less value returning function that returns the wi..

  Improve the performance of program

In a Java program that used a sequential file, how or why would would using either a random access or index sequential file improve the performance

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