Object Oriented Programming — COIT11134

 Instruction Sheet

  1. Write your answers clearly. Use numbered headings or subheadings to show which part of your answer refers to which question. Example: Part A – Question 2.
  • Write your answers from page 10 of this document. Please do not modify this document’s content from page 1 to 9.

Page 1 of 9

PART A                                                                                              10 MARKS

COMPULSORY QUESTIONS

Answer ALL questions from this part.

Each question is worth 2.0 marks (5 x 2 = 10 marks).

Briefly comment on the following statements from Java language point of view. For each question, limit your answers to three to four sentences only.

Question 1                                                                                                              2 Marks

Differentiate Instance variables from static variables.

Question 2                                                                                                              2 Marks

Java Interface can have instance fields and default method implementations.

 

Question 3                                                                                                              2 Marks

In Java, a sub class can implement only one interface and can be extended from multiple superclasses.

Question 4                                                                                                              2 Marks

How can you remove two adjacent elements from the collection that an Iterator is referring to?

Question 5                                                                                                              2 Marks

Java abstract class can contain implemented and abstract methods.

 

PART B                                                                                             35 MARKS

Answer all questions from this part.

Question 1                                                                                             3 Marks

The following class Loan has incomplete codes. Complete the missing lines of code for the given parameterized constructor, isToMonitor() method, and an overridden toString() method.

Hint:

If the loan amount exceeds $500,000 then isToMonitor() method has to return true; otherwise it should return false.

 

toString() method should display the Loan details and based on isToMonitor() method’s return value whether the Loan needs monitoring or not.

import java.time.*; public class Loan

{

private double loanAmount; private LocalDate startDate;

private double interestRate;

private static final double LIMIT = 500000.0;

/**@param givenLoanAmount the loan amount

  • @param year the year of startDate
  • @param month the month of startDate
  • @param day the day of startDate

*/

public Loan ( double givenLoanAmount, int year, int month, int day, double givenInterestRate)

{

//Missing lines of code need to be completed by the student

}

/* If the loan amount exceeds $500,000 then isToMonitor()

method has to return true; otherwise it should return false.*/

public boolean isToMonitor()

{

//Missing lines of code need to be completed by the student

}

/* toString() method should display the Loan details and based on isToMonitor() method’s return value whether the Loan needs monitoring or not. */

@Override

public String toString()

{

//Missing lines of code need to be completed by the student

}

}//end class definition

Question 2            3 Marks

How can you create a unique LoanId for each object of Loan (as mentioned in the above Question 1)? Modify the Loan class given in the above Question 1, and create new class named ModifiedLoan, so that each object of ModifiedLoan will have a unique LoanId.

Question 3            3 Marks

Write a driver class to test the ModifiedLoan class that you have created in Question-2).  The driver should do the following:

  1. create two ModifiedLoan objects; one with the loan amount less than $500000 and the other with the loan amount more than $500000.
  2. print the details of the ModifiedLoan objects on the screen.
Question 4                                                                                                              3 Marks

The following UML class diagram shows that GSTItem class is a subclass of Expense class.

The following table provides the characteristics of the fields that are used in the above two classes.

Field nameClassAccess specifierData type
NameExpenseprivateString
AmountExpenseprivatedouble
GSTIncludedExpenseprivateboolean
GSTAmountGSTItemprivatedouble

You need to write (define) the above mentioned two Java classes. Your classes should have appropriate fields/variables, constructors and overridden toString() methods.

Question 5                                                                                                              3 Marks

Write (define) an interface called as GSTApplicable. The GSTApplicable interface should have a constant and a method declared with the specification as mentioned in the following table:

Field/method nameDescription
percentageOfGSTA constant with the value of 10
calculateGSTA public method that receives no parameters and returns a double

 

Question 6                                                                                                              3 Marks

Modify the GSTItem class you have created as part of Question 4 to implement the interface GSTApplicable that you have created as part of Question 5.  The modified class should have the name “ModifiedGSTItem” and should include implementation of all the methods declared in the interface GSTApplicable.

 

Question 7                                                                                                              3 Marks

The following Java program uses the data structure Stack to store data and the program runs without any error. Write the output produced by the program run.

import java.util.Stack; public class StackTest

{

public static void main(String [] args)

{

// name of structures in an array

String [] buildingPlan = {“Foundation”, “Wall”,”Roof”, “Antenna”};

/*creating buildingStack and taking the contents from buildingPlan array and placing them into the buildingStack*/

Stack<String> buildingStack =new Stack<String>();

for(int i=0; i< buildingPlan.length; i++) buildingStack.push(buildingPlan [i]);

/* creating demolitionStack, taking some of the contents from the buildingStack, one by one, and place them in demolitionStack */

Stack <String> demolitionStack =new Stack <String>(); while(buildingStack.size()>1)

demolitionStack.push(buildingStack.pop());

//printing the name of structures System.out.print(“buildingStack contains “); while(buildingStack.size()>0)

System.out.println(buildingStack.pop());

System.out.println(“demolitionStack contains “);

while(demolitionStack.size()>0)

System.out.println(demolitionStack.pop());

} // end of main method

} // end of class

Question 8                                                                                           6 Marks

The following InsuranceClaim class is incomplete. You need to complete the missing lines of code in

  • toString() method
    • inner class – Approval
    • main method

The expected output is as follows:

Claim Amount: 4500.00 for Claim Id: 1001 has not been approved

Claim Amount: 4500.00 for Claim Id: 1002 has been approved

Note:

An insurance claim is approved only when the claim amount is not exceeding the insured amount.

public class InsuranceClaim {

    private double insuredAmount;

    private double claimAmount;

    private int claimId;

    boolean approved; // for approve or reject the claim by desk verification

    //constructor

    public InsuranceClaim(double insuredAmount, double claimAmount, int claimId) {

        this.insuredAmount = insuredAmount;

        this.claimAmount = claimAmount;

        this.claimId = claimId;

        new Approval().deskVerify();

    }

    @Override

    public String toString() {

        // Student needs to complete the missing lines of code

    }

    class Approval {

/*Complete the deskVerify() method given below. If the claim amount does not exceed the insured amount, it can be approved; otherwise, it is not approved.  To change the instance variable ‘approved’ accordingly.

*/

        void deskVerify(){

// Student needs to complete the missing lines of code

        }

    }

     public static void main (String [] args) {

/*Student needs to complete the missing lines of code

write code to create an InsuranceClaim object with parameters such that the output

 “Claim Amount: 4500.00 for Claim Id: 1001 has not been approved” is produced.

*/

   

          InsuranceClaim myCalim = new

   

       System.out.println(       

/* Student needs to complete the missing lines of code

write code to create an InsuranceClaim object with parameters such that the output

“Claim Amount: 4500.00 for Claim Id: 1002 has been approved” is produced.

*/

   

          InsuranceClaim yourCalim = new

   

          System.out.println(

    }

}

 

Question 9                                                                                                                4 Marks

The ShapeTest class contains incomplete code in the main method. You need to complete the missing lines of code to test the polymorphic behaviour by calling the calculateArea() method appropriately.

// an interface interface Shape {

public double calculateArea();

}

//Rectangle class

class Rectangle implements Shape {

// fields/variables double length; double width;

//constructor

public Rectangle(double length, double width) { setLength(length);

setWidth(width);

}

//getters and setters

public double getLength() { return length;

}

public void setLength(double length) { if(length > 0)

this.length = length;

}

public double getWidth() { return width;

}

public void setWidth(double width) { if(width > 0)

this.width = width;

}

// returning the area of rectangle public double calculateArea(){

return length * width;

}

}// end of Rectangle class

//Circle class

class Circle implements Shape {

// fields/variables double radius;

//constructor

public Circle(double radius) { setRadius(radius);

}

//getters and setters

public double getRadius() { return radius;

}

public void setRadius(double radius) {

if(radius > 0) this.radius = radius;

else

this.radius = 0.0;

}

// returning area of circle public double calculateArea()

{

return Math.PI * radius * radius;

}

}

// to test the objects of Rectangle and Circle public class ShapeTest {

public static void main(String [] args){ Shape [ ] diagrams = new Shape [2];

/* Store the references to one rectangle and one circle shape objects in the above-mentioned ‘diagrams’ array.

Loop through the ‘diagrams’ array and invoke the calculateArea() method of the two shape objects stored in the array to test the polymorphic behavior.

*/

//Missing lines of code need to be completed by the student

}

}

Question 10                                                                                         4 Marks

Write short notes on the following. Your answer should have maximum three sentences for each of the following:

  • Generic method
  • Generic class
  • raw type and upper bound

— End of Exam Questions —

Order Now
No Fields Found.
Universal Assignment (February 12, 2026) Object Oriented Programming — COIT11134. Retrieved from https://universalassignment.com/object-oriented-programming-coit11134/.
"Object Oriented Programming — COIT11134." Universal Assignment - February 12, 2026, https://universalassignment.com/object-oriented-programming-coit11134/
Universal Assignment July 3, 2022 Object Oriented Programming — COIT11134., viewed February 12, 2026,<https://universalassignment.com/object-oriented-programming-coit11134/>
Universal Assignment - Object Oriented Programming — COIT11134. [Internet]. [Accessed February 12, 2026]. Available from: https://universalassignment.com/object-oriented-programming-coit11134/
"Object Oriented Programming — COIT11134." Universal Assignment - Accessed February 12, 2026. https://universalassignment.com/object-oriented-programming-coit11134/
"Object Oriented Programming — COIT11134." Universal Assignment [Online]. Available: https://universalassignment.com/object-oriented-programming-coit11134/. [Accessed: February 12, 2026]

Please note along with our service, we will provide you with the following deliverables:

Please do not hesitate to put forward any queries regarding the service provision.

We look forward to having you on board with us.

Most Frequent Questions & Answers

Universal Assignment Services is the best place to get help in your all kind of assignment help. We have 172+ experts available, who can help you to get HD+ grades. We also provide Free Plag report, Free Revisions,Best Price in the industry guaranteed.

We provide all kinds of assignmednt help, Report writing, Essay Writing, Dissertations, Thesis writing, Research Proposal, Research Report, Home work help, Question Answers help, Case studies, mathematical and Statistical tasks, Website development, Android application, Resume/CV writing, SOP(Statement of Purpose) Writing, Blog/Article, Poster making and so on.

We are available round the clock, 24X7, 365 days. You can appach us to our Whatsapp number +1 (613)778 8542 or email to info@universalassignment.com . We provide Free revision policy, if you need and revisions to be done on the task, we will do the same for you as soon as possible.

We provide services mainly to all major institutes and Universities in Australia, Canada, China, Malaysia, India, South Africa, New Zealand, Singapore, the United Arab Emirates, the United Kingdom, and the United States.

We provide lucrative discounts from 28% to 70% as per the wordcount, Technicality, Deadline and the number of your previous assignments done with us.

After your assignment request our team will check and update you the best suitable service for you alongwith the charges for the task. After confirmation and payment team will start the work and provide the task as per the deadline.

Yes, we will provide Plagirism free task and a free turnitin report along with the task without any extra cost.

No, if the main requirement is same, you don’t have to pay any additional amount. But it there is a additional requirement, then you have to pay the balance amount in order to get the revised solution.

The Fees are as minimum as $10 per page(1 page=250 words) and in case of a big task, we provide huge discounts.

We accept all the major Credit and Debit Cards for the payment. We do accept Paypal also.

Popular Assignments

LCRM301 Researching Criminology

LCRM301 Researching CriminologyTopic: Introduction to theoryand the research processand undertaking acriminological literaturereviewAcknowledgement ofcountryPART ONE: Preparingcriminological research(Weeks 1-5)In the first part of the unit, we focus on preparing criminologicalresearch and decision-making processes. This includes deciding onthe topic you want to focus on, the kinds of methods to use and thetypes of

Read More »

LCRM301 Researching criminology

LCRM301 Researching criminologyWorksheet 1This worksheet will be disseminated to students in Week 3 and will assist them in the planning and development of the second assessment task: literature review. PART 1: Refining your topicThe topic I am interested in is: I am interested in this topic because: This is an

Read More »

LCRM301 Researching Criminology

LCRM301 Researching CriminologyTopic: Planningcriminological research andformulating effectiveresearch questionsAcknowledgement ofcountryLecture structure Example?How do police perceptions of their own organization influence their views of the public,specifically their trust of people in the areas they patrol?How do women with insecure migration status experience and seek help for family violenceand what are their experiences

Read More »

ASSESSMENT NO.2 – COURT APPLICATION FACT PATTERN

FACULTY OF LAW AND BUSINESSThomas More Law SchoolLAWS201: CIVIL PROCEDURE & ADRSEMESTER TWO, 2025 – NATIONAL –ASSESSMENT NO.2 – COURT APPLICATION FACT PATTERN(AND THE FACT PATTERN FOR THE PLEADINGS WORKSHOP IN WEEK 5)BackgroundRachel Richardson is a printer by trade although she currently works in art design fora fashion magazine based

Read More »

Assessment 2: Court Application

02/09/2025, 20:3430 Points PossibleAssessment 2: Court ApplicationAssessment 2: Court ApplicationDetailsAssessment task 2: Court Application (worth 30% of the final total mark for this unit)Add commentA simulated court application will be run in weeks 6 and 7 of semester on selected topics from the first five weeks of the unit. Your

Read More »

APPENDIX B: ASSESSMENT TASK 2 – COURT APPLICATION

APPENDIX B: ASSESSMENT TASK 2 – COURT APPLICATION (30% OF FINAL MARK)General informationThis Assessment task is worth 30 marks of your final mark.The task is either making (Applicant) or opposing (Respondent) an application before theSupreme Court in your respective state based on a fact scenario, which will be uploaded on

Read More »

Assessment task Assessment 1 – ASSIGNMENT

Assessment Task 1 (30% of the final mark)This Week30 Points PossibleIn ProgressNEXT UP: Submit assignmentUnlimited Attempts Allowed11/08/2025Attempt 1 Add commentDetails Assessment task Assessment 1 – ASSIGNMENTPurpose To give students the opportunity to produce a well-written piece of formal analysis on a topic inland law. Graduate capabilities GC1,3,7-11 are covered by

Read More »

Assessment Brief- Assessment 3- Map-Reduce Programming Challenge

Assessment Brief- Assessment 3- Map-Reduce Programming Challenge Unit Code/Description ICT313 Big Data for Software DevelopmentCourse/Subject Bachelor of Information TechnologySemester S1 – 2025Unit Learning OutcomesAddressedULO3: Critically assess and implement advanced data pre-processing andanalytics strategies in a software development context, focusing on tasks like datacleansing, transformation, and feature selection.ULO4: Design, develop, and

Read More »

Assessment 2 Infographic and Reflection

Assessment 2 Infographic and Reflection Part 1 Infographic and Part 2 Reflection using the Gibbs CycleThis assessment is worth 35% of your final grade (Infographic 18% + Reflection 17%). Assessment InstructionsPart 1: InfographicCreate an A3 size infographic (portrait layout).Submit as a .pdfTOPIC:Create your infographic as a poster (A3 paper size)

Read More »

CHCCSM013 Facilitate and review case management

ContentsAbout this document 4Student details section 4The community services work environment 5Workplace hours 6Responsibilities 6Evidence collection 7Section 1: Determine response for case management 9Section 2: Conduct case management meetings and develop case management plan 18Section 3: Monitor and review case work activities and processes 24Section 4: Supervisor report 28 About

Read More »

BMM6302 Entrepreneurship and Creativity Assignment help

Assignment Brief – Cohort 07 BMM6302 Entrepreneurship and Creativity  Component number Assignment 1 Assignment type 01 Business Idea (Video Presentation – Panopto) Learning outcomes for this assessment (Please see module Handbook for all learning outcomes) Compare and contrast a variety of strategic models to develop and critically evaluate business start-up

Read More »

BMM6582: eBusiness and eMarketing 02 Analytical Review Assignment Help

Assignment Brief BMM6582: eBusiness and eMarketing Component number Assignment 2 Assignment type 02 Analytical Review Learning outcomes for this assessment (Please see module Handbook for all learning outcomes) Compare, contrast, and analyse approaches used to evaluate a company’s current positioning in the traditional and electronic marketplaces. Appraise various options for

Read More »

BMM6582: eBusiness and eMarketing Assignment 2 Assignment Help

Assignment Brief BMM6582: eBusiness and eMarketing Component number Assignment 2 Assignment type 02 Analytical Review Learning outcomes for this assessment (Please see module Handbook for all learning outcomes) Compare, contrast, and analyse approaches used to evaluate a company’s current positioning in the traditional and electronic marketplaces. Appraise various options for

Read More »

BMM6582: eBusiness and eMarketing Assignment Help

Assignment Brief BMM6582: eBusiness and eMarketing Component number Assignment 1 Assignment type 01 Video presentation (Panopto) Learning outcomes for this assessment (Please see module Handbook for all learning outcomes) Compare, contrast, and analyse approaches used to evaluate a company’s current positioning in the traditional and electronic marketplaces. Appraise various options

Read More »

Business and Management Strategy Assignment Help

Business and Management Strategy: Assignment Guidelines and Suggested Structure (3,000 Words) 1. Introduction (approx. 250–300 words) 2. Industry Analysis and Competitive Environment (400–450 words) 3. Competition and Customer Requirements (550–600 words) 4. Resources and Strategy Implementation (500–550 words) 5. Strategic Capabilities & Sustainable Advantage (400–450 words) 6. Development of Resources

Read More »

BMM6452 – Professional Learning Through Work Assignment Help

Assignment Brief  BMM6452 – Professional Learning Through Work Assignment type  Final Assessment (Assessment 3)-To be Negotiated Learning outcomes   (Please see module Handbook for all learning outcomes)  By the end of this module, the student should be able to:  Demonstrate enhanced graduate employability skills, knowledge, behaviours and attitudes developed through working

Read More »

CSE2/4DBF (2025) – Assignment 1

CSE2/4DBF (2025) – Assignment 1 Page 1/3 CSE2/4DBF 2025Assignment 1 (20%)Due date: this week AIMS AND OBJECTIVES:✓ to represent a problem description given in natural language as an (Enhanced) EntityRelationship modelThis is an individual Assignment. You are not permitted to work as a group when writingthis assignment. The use of

Read More »

Can I Pay Someone to Do My Assignment? A Complete Student Guide

If you’re a student juggling multiple deadlines, exams, part-time work, or personal responsibilities, you may have found yourself asking: can I pay someone to do my assignment? You’re not alone. This is one of the most searched academic questions today, especially among university and college students worldwide. In this blog,

Read More »

Project Development and Analysis in Emerging Technologies

Assessment Brief- Assessment 2 Unit Code/Description ICT305 – Topics in IT Course/Subject BIT Semester 2024- S1 Unit Learning Outcomes Addressed ULO 1, 2, and 3. Assessment Objective The primary objective of this assessment is to provide students with hands-on experience in designing, implementing, and analysing a project in one of

Read More »

EDUC1006 Interdisciplinary Studies: Crossing the line

ASSESSMENT 2: Report Summary Title Assessment 2 Type Report Due Date Thursday 17 April, 11.59 pm (end of Week 6) Length 1500 words or equivalent Weighting 50% Academic Integrity The use of GenAI is allowed but limited for this assessment task. Submission Word document or PDF submitted to Turnitin Unit

Read More »

Writing in Community Development

Assessment Overview Overview Length or Duration Worth Due This essay should demonstrate a coherent argument, which is backed up by evidence from relevant journal articles, books and websites. You are expected to make two direct quotations only; and the rest should be paraphrases. You should also list at least eight sources.   If you are unsure of

Read More »

Counselling Theory and Practice in Schools

Assignment 1 Requirements Word limit 2500 words; excluding references Referencing You’re required to follow APA Academic Integrity Please refer to the Guidelines Task Purpose 🎯 This assessment task is designed to develop and assess students’ critical thinking and reflective skills, essential for counselling professionals in educational contexts. By engaging in a literature

Read More »

PSY1040 Cultural Responsiveness Self-Assessment

PSY1040 Cultural Responsiveness Self-Assessment The below self-assessment tool has been adapted from the following resource: Bennett, B., & Morse, C. (2023). The Continuous Improvement Cultural Responsiveness Tools (CICRT): Creating more culturally responsive social workers. Australian Social Work, 76(3), 315–329. Bennett’s collection of Cultural Responsiveness Self-Assessment Tools is designed for social workers

Read More »

TEAC7094 Assessment 2 Report: Analysis of a Student Work Sample

TEAC7094 Assessment 2 Report: Analysis of a Student Work SampleRemember to include a completed Cover Sheet for this task. CONTEXT PROBLEM AND SOLUTION (approx. 600 – 800 words) RECOMMENDATIONS (approx. 400 words) CONCLUSION REFERENCES Appendix One: Annotated and coded interview transcript from working with the child Appendix Two: Annotated and

Read More »

Psychological Data Analysis Report

Written Assignment This page outlines the major written assignment and the steps involved in preparing for submission. This assignment will allow you to develop essential skills in analysing and interpreting a data set to address a psychological issue and report the results in APA style. Note that separate documents are

Read More »

Principles of Economics

Principles of Economics Short-answer Assignment V1 (20% of final mark) The assignment consists of four questions.  You should allocate at least half a page (or 250 words) to each answer or 1000 words for all four answers depending on the nature of and/or marks allocated for the question/s. You may

Read More »

MRTY 5134 Laboratory Report Assignment

MRTY 5134 Laboratory Report Assignment Semester 1 2025Due 18th May 2025Answer TemplateEnter your name and student number below.Name:SID:Use this document to record your answers to the tasks described in the laboratoryreport assignment. When completed submit this document for marking via theassignment portal in Canvas.Things to note:

Read More »

Mind Map – Personal Philosophy

Mind Map – Personal Philosophy Assessment 2  Assessment Overview Overview Length or Duration Worth Due Part A – Annotated mind-map (equivalent to 350 words). Part B – 350 word personal reflection about your history, identity and values and link it with concepts explored in the unit. Part A – 350 words equivalent

Read More »

Can't Find Your Assignment?