Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Write a Java class named Assignment to meet the requirements described in the UML Class Diagram attached to the assignment. This lab will adhere
Instructions Write a Java class named Assignment to meet the requirements described in the UML Class Diagram attached to the assignment. This lab will adhere to the published Basic Coding Standards. Failure to follow the standards will result in a grade of zero (O) for the lab assignment. You will submit your source code (Assignment.java - source code only) in a zipped folder attached to the assignment in Blackboard. DO NOT submit edit/backup versions (with them in the file type) or compiled code (.class files); submission of either will result in a grade of zero (0). Failure to submit in the required format (zipped folder) will result in a grade of zero (O). Requirements The provided UML Class Diagram explains the requirements for Class Assignment. In addition to the requirements described there, be aware of the requirements included in the Basic Coding Standards (published on Blackboard). Specifically be aware of the following: All set and get methods must use standard naming (i.e. "set" or "get" followed by the instance variable name, adjusted for proper camel casing). All get and set methods must be 'final methods. The only direct access to instance variable values is through the set and get methods; no other direct access is ever permitted. Sample toString Output Your output need not be identical to that shown here, but you MUST include all instance values in the output, in the order shown. ***Some number will appear here*** Minimum Standards Check passed for Assignment.java Assignment instantiated with null constructor: A(n) null is due on for null null Assignment instantiated with full constructor: A(n) Lab Assignment is due on 20200125 for IS2041.001 Attributes private assignCourse: String private assignSctn: String private assignType: String private assignDue: int Assignment Notes The course number of the class for this assignment (e.g. IS2041, ACC2003, etc.) The section number of the class for this assignment (e.g., 001, EB1, etc.) The type of assignment (e.g., exam, quiz, project, etc.) The due date for this assignment in yyyymmdd format (e.g., 20200331 for March 30, 2020) Operations public Assignment(): Assignment Description A null constructor returning a reference to an Assignment object whose instance variables have all been set to "neutral defaults" (i.e., null String references or zeros) A full constructor, requiring one input parameter per instance value, returning a reference to an Assignment object whose instance variables have all been set to specified values public Assignment(course:String, sctn: String, type: String, due: int ): Assignment public setAssignCoursel course: String): void public setAssignSctn section: String): void public setAssign Typel type: String): void public setAssignDuel due: int ): void Mututor method for the assignCourse instance variable Mutator method for the assignSctn instance variable Mutator method for the assign Type instance variable Mutator method for the assignDue instance variable public getAssignCourse(): String public getAssignSct(): String public getAssignType(): String public getAssignDue(): int Accessor method for the assignCourse instance variable Accessor method for the assignSctn instance variable Accessor method for the assign Type instance variable Accessor methd for the assignDue instance variable public toString(): String Returns a reference to a String object containing a complete description of this Assignment object NOTES: 1. Mutator and accessor methods must be defined as "final" methods. There is no exception to this rule. 2. Mutator and accessor methods must always be named according to the Basic Coding Standards. This UML diagram follows those standards. 3. Direct access to instance variables/values is permitted ONLY through the appropriate mutator/accessor methods. Ever. Period
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started