Java Assignment

profileemma_94
OOTCOMP20003FALL-18CW24.pdf

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 1 of 10

 

Instructions to Students:

 Assignment submission includes submission of report of the work done with a

Presentation accompanied by viva.

 Assignment without presentation and viva will be awarded Zero marks.

 Feedback will be given (as per the assessment feedback policy) on each task as

per the marking grid and also in Moodle.

Purpose:    The aim of this assignment is to provide students knowledge to understand and apply  the object oriented concepts using Java programming language.   The assignment also aims at applying exception handling routines in Java programming  language to handle unexpected errors.  

  Outcomes:    1. Demonstrate Design and develop Java applications using object oriented concepts   2. To gain in‐depth knowledge of exception handling in object oriented environment. 

  Consider  the  following  Scenario  the  Modeling  of  which  you  have  completed  in  Assignment1:    Muscat Autos (MA)  is a well‐known auto care company  in the Sultanate.MA  is having  more  than  a  hundred  employees.MA  provides  one‐stop  auto  care  services  like  scheduled monthly, quarterly and yearly maintenance, service, and repairs.     MA has two types of customers  individual and corporate.MA registers the customers  and  keeps  their  profile  along  with  maintenance,  repair  and  service  history  of  the  vehicles.  

Assignment 2 – FALL 2018 

Module: Object Oriented Technology (COMP 20003) ID NUMBER

Level: 2 Max. Marks: 100 Duration: 3 weeks

Date of Submission: 13th Week Weightage: 30%

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 2 of 10

  Customers can book an appointment via the website or by calling the customer care. At  the time of appointment, the inspection manager inspects the vehicles and prepares an  observation  report  after  carrying  out  different  tests  on  the  vehicle.  The  observation  report  includes  the  list  of  tasks  that  are  strongly  recommended,  recommended,  and  optional.    The observation report is sent to the Branch manager who takes the approval from the  owner  of  the  vehicle  either  individual  or  corporate  representative.  After  taking  the  necessary approvals from the customers the report including the approved tasks is sent  to the auto engineer.    The Auto engineer sends a request of spare parts to the warehouse and starts working  on  the  job  after  receiving  all  the  required  items.  When  the  job  is  completed  the  accounts  department  prepares  bills  based  on  the  details  sent  by  the  auto  engineer  handling the job.    The customers are given a gate pass after payment of all the dues which can be used to  drive the vehicle out of MA. The vehicle history is updated by the branch manager.      Tasks: 

Task 1: Create a work proposal for the assignment and submit within 1 week. The  work proposal submitted must include:   

 The initial class structure in Java   The identified associations among classes (initial).   The initial functional methods of the classes   The Initial understanding of each task of the assignment.   The resources used in the assignment.   Prepare a timeline for the completion of tasks. 

    

           (10 Marks) 

Task 2: The Class Structure.  Task 2 A: Write coding of the class Structure  in Java for the scenario above. The  classes  can  /must  match  your  design  created  in  assignment  1.  Additional  classes  and functionality can also be included in the coding of the model.  

           (13 Marks) 

Task 2 B: Write Java code showing associations among the class structure created.  Include generalization, composition and aggregation among classes. 

           (12 Marks) 

Task 2 C: Write Java code showing one single main method. Create objects of all  classes created and call all function method to check the functionality of the  application. 

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 3 of 10

           (10 Marks)     

Task 3: The functionality of classes.  Task 3 A: Identify behavior of the classes by adding different functional methods in  each of the class. Every class must have at least two functional methods in addition  to the constructors. 

           (20 Marks) 

Task 3 B: Add Constructors and display methods in each class.             (15 Marks)   

Task 4: The Custom Exception handling   Task 4 A: Create at least two classes for custom exception handling. Choose  situations of your own. 

           (10 Marks) 

Task 4 B: Implement custom exceptions handling in the solution created for  different situations.  

           (10 Marks)    

  Note:   

 Submit a work proposal for this assignment by end of 10th week. The proposal  may include. 

 The initial class structure in Java   The identified associations among classes (initial).   The initial functional methods of the classes   The Initial understanding of each task of the assignment.   The resources used in the assignment.   Prepare a timeline for the completion of tasks.   

  Deliverables    All designed solutions must be uploaded to Moodle in the form of a report. The report  must contain introduction, table of contents, references and designed model of the  system (all Tasks).    Guidelines    Follow the guidelines mentioned below for your assignment.   

 Assignment should be typed and is to be submitted through Moodle.   Code developed should be included in softcopy   Handwritten assignments will not be accepted 

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 4 of 10

 Assignment should have a Title Page. Title Page should contain the following  information. 

 Assignment Name   Class    Student name   Student ID 

 It should have Table of Contents    Use page numbers    Assignment should be typed in your own words using Times New 

Roman font size 12.   Heading should be with Font Size 14, Bold, Underline   Use Diagrams and Examples to explain your topic.   Report should not exceed 5 pages (A4)   Copy paste from the Internet is strictly not acceptable.    Reference should be included in the last page as follows 

 Author name, Book Title, Publisher, Year in case of books   In case of web site references type the full path of the web page 

with referenced date   In case of magazines/ periodicals type article name, magazine 

name, Issue Number and date    Rules & Regulations   

 If any topic or diagram of an assignment is found copied from the others then  marks will be deducted from both assignments. 

 Assignments with 3 or more identical topics will be awarded 0 Marks.   The purpose of assignment is to do some research work so you can consult 

books in Library or use internet or computer magazines or any other source.    

Academic Policies  

 

a. Supplementary Exam (Eligibility for Re‐sit)  Eligibility for a re‐sit for students who have failed the  End Semester Examination  is a score of 50% or 

above in their coursework. 

b. Plagiarism/Malpractice/Collusion/Ghost‐writing/Other cases  1. Plagiarism

A. First offence of plagiarism

a. If a student is caught first time in an act of plagiarism during his/her course of study in any assignment other than project work, the student will be allowed to re-submit the assignment once, within a maximum period of one week. However, a penalty of deduction of 25% of the marks obtained for the resubmitted work will be imposed.

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 5 of 10

b. Period of re-submission: The student will have to re-submit the work one week from the date he or she is advised to re-submit.

If the re-submitted work is also found to be plagiarized, then the assessment will be awarded a zero mark

d. Re-submission of the work beyond the maximum period of one week will not be accepted and the assessment will be awarded a zero mark.

e. If plagiarism is detected in Project work (Project 1, Project Planning and Project Design and Implementation) the above clauses (a, b, c, d) do not apply and the work will be summarily rejected. In these cases the student will be awarded a fail (F) grade and is required to re-register the module

f. If the student fails the module and has a proven case of academic integrity violation in this module, the student is required to reregister the module

B. Second offence of plagiarism a. If any student is caught second time in an act of plagiarism during his/her course of study (in a subsequent semester), the student will directly be awarded zero for the work in which plagiarism is detected. In such cases, the student will not be allowed to resubmit the work.

b. If the student fails the module and has a proven case of academic integrity violation in this module, the student is required to re-register the module

C. Third Offence of plagiarism If any student is caught for the third time in an act of plagiarism during his/her course of study (in a subsequent semester), the student will be penalized with a fail in the module and shall be required to re-register the module.

D. Fourth Offence of plagiarism If any student is caught for the fourth time in an act of plagiarism during his/her course of study (in a subsequent semester), the student shall be suspended from the College for a period of one semester.

E. Fifth offence of plagiarism If any student is caught for the fifth time in an act of plagiarism during his/her course of study (in a subsequent semester), the student shall be expelled from the College

Types/Variations of cases of Plagiarism and associated actions

A. Type 1: In case plagiarism is detected in any component or part submission (submitted at different times) of one assessment (assignment), the deduction in marks will be applicable for the whole assessment (assignment), even if only the component or part submission alone needs to be resubmitted.

B. Type 2: In case plagiarism is detected in a group assessment, all students of the group will be considered as having committed an act of plagiarism irrespective of whether plagiarism is on account of the act of all or a few or only one member. The policy will then be applied to all students.

C. Type 3: Combination of Type 1 and Type 2: In case plagiarism is detected in any component or part submission (submitted at different times) of a group assessment (assignment), the deduction in marks will be applicable for the whole assessment (assignment), even if only the component or part submission alone needs to be resubmitted. All students of the group would be considered as having committed an act of plagiarism irrespective of whether plagiarism is on

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 6 of 10

account of the act of all or a few or only one member. The policy will then be applied to all the students of the group.

D. Type 4: Variation of Type 1 and Type 2: In cases where the assessment consists of components or part submissions that could be a group assessment component (e.g. group assignment) and an individual assessment component (e.g. individual reflection), the following will be applicable:

a. If plagiarism is detected in the group assessment component, all students of the group will be considered as having committed an act of plagiarism, irrespective of whether plagiarism is on account of the act of all or a few or only one member. The policy will then be applied to all students of the group. In such cases the group assessment component will be resubmitted as per the policy.

b. If plagiarism is detected in the individual assessment component, the individual assessment component will be resubmitted as per the policy. The policy will then be applied to that student alone.

c. In both cases (a) and/or (b), the deduction in marks will be applicable for the whole assessment (assignment).

2. Malpractice/Ghostwriting/Collusion A. First offence of Malpractice/Ghostwriting/Collusion

If a student is caught in an act of Malpractice/Ghostwriting/Collusion for an assessment component irrespective of coursework or end semester, the student shall fail the module and shall be required to reregister the module.

B. Second Offence of Malpractice/Ghostwriting/Collusion If a student is caught a second time in an act of Malpractice/Ghostwriting/Collusion for an assessment component irrespective of coursework or end semester (in a subsequent semester), the student shall be suspended for one semester from the College.

C. Third Offence of Malpractice/Ghostwriting/Collusion If a student is caught a third time in an act of Malpractice/Ghostwriting/Collusion for an assessment component irrespective of coursework or end semester (in a subsequent semester), the student shall be expelled from the College.

3. Other cases If a student commits an act of academic integrity violation as per the definition of “other cases” mentioned in the previous section or of a different nature, those cases shall also be forwarded to a departmental level committee set for the purpose .The committee shall investigate the case by means of a viva and/or a disciplinary hearing and shall take appropriate decision. The minimum penalty that can be granted to a proven case of academic integrity violation which falls in this category of “other cases” is a fail in the module. For further offences in this category, the penalty can range from suspension to expulsion from the college depending on the nature and gravity of the offence. The guidelines given below should be followed for undertaking the viva/disciplinary hearing for such cases.

Types/Variation of Cases of Multiple Offences

If a student is caught in a subsequent offence of academic integrity violation which is of a different nature than the previous offences, then the penalty shall be applied as per the penalty detailed for the subsequent offence of the current violation.

For example, a student was found to have plagiarized during a semester and was penalized with deduction of 25 percent marks in his resubmitted mark as per the policy

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 7 of 10

on Plagiarism. During a subsequent semester, if the same student is caught in malpractice, then the student will be suspended from college for a semester as detailed in the penalty for second offence of Malpractice. As per MEC policy, the minimum penalty that can be granted to a proven case of academic integrity violation which falls in the category of “malpractice”, “ghostwriting” , “collusion “ or “other cases” is a fail in the module. The student shall be required to re- register the module.

3.1. Attendance   Regular class attendance  is expected of all students.  If a student arrives  late for class 

and  the  roll  call  has  been  taken,  it  is  the  responsibility  of  the  student  to  notify  the 

instructor  at  the  end  of  that  class  that  he/she  arrived  late  and  was  not  absent.  Any 

student who arrives late to class after 10 minutes from the start time of the session will 

be marked absent for that hour of the session. However, the student shall be permitted 

to attend the session  if he/she wishes to do so. Students should regularly check their 

college email and SIS for  any notifications on their attendance. Students who do not 

fulfil  the  attendance  requirement  will  not  be  allowed  to  write  the  End  Semester 

Examination and will subsequently be declared as failed. For more details refer to the 

student handbook. 

3.2. Late Submission Policy

The recommended practice at MEC is to set the cutoff time to 23:59 on the due date for all assessment submissions. As per the Assessment Policy at MEC, for any late submissions, a penalty of deduction of 5% of the marks obtained for the resubmitted work will be imposed for each working day following the last date of submission till the date of actual submission. Assessment documents submitted beyond a period of one week after the last date of submission will not be accepted and will be awarded a zero for that assessment. In cases where the submission has been delayed due to extenuating circumstances, the student may be permitted to submit the work without imposing the late submission policy stated above. The extended period of submission will be one week from the original last date of submission. In such cases, the student is expected to submit the supporting certificates on or before the original last date of submission of the assessment and the decision of extension rests with faculty responsible for the assessment .The late submission policy shall be applied if the student fails to submit the work within one week of the original last date of submission.

Students may contact their teachers for clarification on specific details of the submission time if required.

3.3. Research Ethics and Biosafety Policy  To protect and respect the rights, dignity, health, safety, and privacy of research subjects involved including the welfare of animals and the integrity of environment, all student projects are expected to be undertaken as per the MEC Research Ethics and Biosafety Policy. Accordingly the following shall apply.

 Research and other enterprise activities shall be conducted by maintaining the high ethical standards consistent with national and international standards and conventions.

 Any research at MEC that is categorized as high-risk research shall be subject to review and approval by the Research Ethics and Biosafety Committee.

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 8 of 10

 Research activities involving collection of human or animal tissues and manipulation of microbial, animal or plant cells shall be subject to review and approval by the Research Ethics and Biosafety Committee.

 Participants involved in research must be informed about the purpose of research and intended uses of research findings. Written consent must be obtained from people involved prior to the commencement of research.

 Data obtained from participants must be treated with high confidence and should be used only for the intended purpose of research.

 Research supervisors must take necessary steps to ensure research integrity and quality of their students’ research.

 

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 9 of 10

  FALL 2018 

 Object Oriented Technology (COMP 20003) 

  Student ID:       

 

Student Name:  

Assessment Sheet (Assignment 2) 

  Task 1  [0]  [1] to [4]  [5] to [8]  [9] to [10]  Marks 

Work Proposal  Submission 

No Submission  Proposal Submitted  with incomplete  details.  

Proposal Submitted  with details. But  There is scope of  improvement.  

Proposal with all  the required  details 

 

Task 2 A  (Class Structure) 

[0]  No  Implementation 

[1]‐[5] Weak  Implementation 

[6]‐[10] Fair implementation  

[11]‐[13] Good  Implementation  

Marks 

Classes  No classes  implemented 

Weak implementation  of classes 

Fair implementation  of classes 

Good  implementation of  classes 

 

Task 2 B   

[0]  No  Implementation 

[1]‐[5] Weak  Implementation 

[6]‐[10] Fair implementation  

[11]‐[12] Good  Implementation  

Marks 

Associations   No associations   implemented 

Weak implementation  of Association  

Fair implementation  of Association 

Good  implementation of  Association 

 

Task 2 C   

[0]  No  Implementation 

[1]‐[4] Weak  Implementation 

[5]‐[08] Fair implementation  

[09]‐[10] Good  Implementation  

Marks 

Main   No main   implemented 

Weak implementation  of Main  

Fair implementation  of Main 

Good  implementation of  Main 

 

Task 3 A  [0]  [1]‐[10] [11]‐[16] [17]‐[20] Marks  Implementing   of functional  Methods 

No methods  implemented. 

Weak implementation  of methods in the  classes  

Fair  implementation of  methods in the  classes 

Good  implementation of  method in the class  with all the  required details. 

 

Task 3 B   

[0]  No  Implementation 

[1]‐[6] Weak  Implementation 

[7]‐[12] Fair implementation  

[13]‐[15] Good  Implementation  

Marks 

Constructors  and display  methods 

No constructors/  Display  methods  implemented 

Weak implementation  of constructors/  Display  methods in the  classes  

Fair  implementation of  constructors/  Display  methods in  the classes 

Good  implementation of  constructors/  Display  methods. 

 

Task 4 A  [0]  No  Implementation 

[1]‐[4] Weak  Implementation 

[5]‐[08] Fair implementation  

[09]‐[10] Good  Implementation  

Marks 

Custom   Exception   classes  

No Exception  handling classes  implemented 

Weak implementation  of Exception handling  classes in the coding 

Fair   implementation  of Exception 

Good  implementation of  Exception handling 

 

OOT (COMP 20003) –FALL -18 –CW2- QP

Page 10 of 10

handling classes classes. 

Task 4 B  [0]  No  Implementation 

[1]‐[4] Weak  Implementation 

[5]‐[08] Fair implementation  

[09]‐[10] Good  Implementation  

Marks 

Exception   handling 

No Exception  handling  implemented 

Weak implementation  of Exception handling  in the coding 

Fair   implementation  of Exception  handling in the  classes 

Good  implementation of  Exception handling  in the class with all  the required  details. 

Exception  handling 

        Signature of Evaluator: 

Total Marks   

Penalty   

Final Marks   

Comments/ Feedback:    Task 1:      Task 2:      Task 3:      Task 4:          General Comments/ Feedback:            Similarity Feedback: