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 (July 1, 2025) Object Oriented Programming — COIT11134. Retrieved from https://universalassignment.com/object-oriented-programming-coit11134/.
"Object Oriented Programming — COIT11134." Universal Assignment - July 1, 2025, https://universalassignment.com/object-oriented-programming-coit11134/
Universal Assignment July 3, 2022 Object Oriented Programming — COIT11134., viewed July 1, 2025,<https://universalassignment.com/object-oriented-programming-coit11134/>
Universal Assignment - Object Oriented Programming — COIT11134. [Internet]. [Accessed July 1, 2025]. Available from: https://universalassignment.com/object-oriented-programming-coit11134/
"Object Oriented Programming — COIT11134." Universal Assignment - Accessed July 1, 2025. https://universalassignment.com/object-oriented-programming-coit11134/
"Object Oriented Programming — COIT11134." Universal Assignment [Online]. Available: https://universalassignment.com/object-oriented-programming-coit11134/. [Accessed: July 1, 2025]

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

Nursing Ethics and Law – Henry Pearson Case Study

Nursing Ethics and Law – Henry Pearson Case Study Course Code & NameNUR1103 |Context of Professional PracticeAssessment Item and NameAssessment THREE | Case StudyAssessment Item TypeEssay/ Case studyDue Date & TimeWeek 10 | 15th March 23:59 hrsLengthEssay is 1200 words + or – 10%Marks and WeightingOverall mark is out of

Read More »

NUR3397 – Complex Care Case Study Presentation

Course Code & NameNUR3397 |Complex Care AAssessment Item and NameAssessment TWO | PresentationAssessment Item TypeIndividual oral presentationDue Date & TimeWeek 10 | 22nd April 23:59 hrsResults data will be returned to you three weeks after your submission dateLength12-15 minute oral presentation recorded to ZOOM cloud + or – 10%Marks and

Read More »

AI in Recruitment: Legal and Ethical Implications for Harmony Haven

PurposeThis assessment helps you demonstrate report-writing skills essential for HR and other professional roles. It develops your research abilities, including sourcing, reviewing, and synthesizing academic and non-academic literature. Strong report-writing skills support informed business decisions, enhancing your ability to assist managers and advance your career. AI in Recruitment: Legal and

Read More »

Youth Justice Crisis: Indigenous Incarceration in Australia

issues During Impact Root  cause Youth justice crisis ongoing Disproportionate indigenous youth incarcerations reports of abuse eg Don Dale Low age of criminal responsibility (10) – Systemic racism and overpolicing – Lack of diversion and rehabilitation pathways Word: 1000 Topic selected: Youth Justic Crisis, Assessment 1: Conflict Analysis Exercise –

Read More »

PV System Design and Energy Analysis for Residential Use

Executive Summary Provide a brief summary of the key methods and key results, max 500 words. 1.         Introduction (aims and objectives and brief description of the system studied and methods of the next sections) approximately half a page 2.         Solar irradiation analysis Provide location and data used. Provide hourly GHI,

Read More »

Assignment 3: Statistical Analysis and Recommendations for Enhancing HDI

Student Name:               Your full name Student ID:                     Your Student ID Make sure to delete the instructions!! Introduction: Include a succinct introduction at the start of your report. You may write a few sentences about purpose of this report, the type of analysis, or any other relevant information (about 50 words).

Read More »

Brian Old Age Case study Assignment

Assessment 1 – Written AssessmentAssessment TypePurposeDescriptionWritten AssignmentThe purpose of this assessment is to broaden each student’s understanding of the modulecontent using a case study and assessment toolsCase Study: Brian is an 84-year-old retired farmer in a rural area in Northern Territory. Hewas recently assessed following a minor motor vehicle accident

Read More »

Assessment name: Portfolio of planning cycle

Assessment name: Portfolio of planning cycleDue Date: Friday 13 June 11:59pmWeighting: 50%Length: 2000 wordsTask Description: This Portfolio is comprised of two tasks. You must submit your assessment as onedocument. Task 1: Anecdotal record and learning experienceAnecdotal recordView the video of pre-schoolers provided under the link “Video for Assessment 2” andcomplete

Read More »

NUR5327 Assessment 3 Assignment Help

Name NUR5327 Assessment 3 (Essay)Purpose The purpose of this assessment is to demonstrate your understanding of therolesof leadership and management in healthcare by identifying and analysinga change you have actively participated in, and how it relates to key topicssuch as interprofessional communication, evidence-based practice, and staffdevelopment.LearningOutcomes NUR5327 Assessment 3 Assignment

Read More »

Mathematics Investigation and Reflection Assignment Help

Submission: Mathematics Investigation and Reflection Assignment Help TurnitinFormat:Individual written document.Uses the current APA referencing style correctly.Length:2,000 wordsThreshold Detail:For this assessment task you must obtain at least 50% of the overall result (i.e. 25 points). If the total result for this unit is at least 50 points but you scored less

Read More »

FASS Research Proposal Template Assignment

FASS Research Proposal Template Word length2000 to 3000 wordsTitleUse a concise and descriptive title that accurately reflects the content of the proposal.Background context and significanceThis section should explain the background and context of the proposed research work,indicating the main contribution to knowledge you wish to make.Aims and objectivesInclude a clear

Read More »

Evidence to Inform Nursing Practice Assignment Help

Unit Code:   NURS12165 Unit Title:    Evidence to Inform Nursing Practice Assessment Three Type:                               Written Assessment Due date:                         Week 11: Wednesday, 28 May 2025 at 1600 (AEST) Extensions:                     Available as per policy Return date:                    Results for this assessment will be made available on Wednesday, 18 June 2025 Weighting:                       50% Length:                           

Read More »

NUR1120 | Burden of Disease and Health Equity

Assessment Item Task SheetCourse code andnameNUR1120 | Burden of Disease and Health Equity Assessment itemand nameAssessment Three | ReportDue date and time Week 11 | 22/04/2025 at 2359 hours AESTLength 1400 words (+/- 10% in each section) – includes in-text references, but not reference list.Marks out of:Weighting:80 Marks50%Assessed CourseLearning Outcomes(CLO)CLO1,

Read More »

PSY1040 Portfolio: Cultural Responsiveness & Self-Awareness

Course Code and NamePSY1040: An Introduction to Cultural Safety in PracticeAssessment Item Number and NameAssessment 2: PortfolioAssessment Item TypePortfolio PSY1040 Portfolio: Cultural Responsiveness & Self-AwarenessDue Date & TimeTuesday, 29 April 2025 (Week 12), 11:59pmLength2000 words – an average of 400 words per task.Marks and WeightingMarked out of: 100Weighting: 50%Assessed Course

Read More »

Innovative Digital App Development Report

OVERALL DESCRIPTION OF TYPE OF ASSIGNMENT Assessment 1- Type of Assignment Individual Written Report Details Individual Written Report 3,000 words (500 words of the Report is Contextualisation) Weighting of Assessment : 70% INDIVIDUAL MARK Learning outcomes assessed by Assessment: 1, 2, 3 and 4 – See Module Listings of Learning

Read More »

Tourism Trends and Investment Decisions: A Comparative Study

Assignment TaskYou are a strategist working for a major hospitality group based in Australia. The company is planninginternational expansion, and the board has asked you to compile a report to identify the most suitablelocation for the project. The board has shortlisted two international locations (which will be allocatedto you by

Read More »

EC502 Language and Literacy in the Early Years

EC502 Language and Literacy in the Early Years Unit Code/Description EC502 Language and Literacy in the Early Years Course/Subject Bachelor of Early Childhood Education Semester March 2025 Assessment Overview   Unit Learning Outcomes Addressed 1, 2, 3 Assessment Objective Assessment 1: Poster Including an Invigilated stage in Week 3. Due

Read More »

EC501 Early Childhood Learning and Development

Unit Code/Description EC501 Early Childhood Learning and Development Course/Subject Graduate Diploma in Education (early childhood) Semester S 1, 2025 Assessment Overview   Unit Learning Outcomes Addressed 1, 2, 3 Assessment Objective In this assessment, student are required to select one of the case studies provided and critically analyze the child’s

Read More »

JSB172: Professional Academic Skills

JSB172: Professional Academic SkillsAssessment: Workplace Report and Presentation Weight: 50%Due date: Friday 30th May 11:59pm Length: 1,750 words (+/- 10 %) / 5minutesPurpose/Learning Objectives:This assessment relates to Learning Outcomes 1, 2, 3, and 4: Task:Your task is to write a Workplace Report identifying how to address the topic/issue chosen or

Read More »

2015PSY Developmental Psychology Assignment

2015PSY Developmental Psychology Assignment 2025 2015PSY Developmental Psychology Assignment Assignment MaterialsAssignment Information Sheet & Marking Criteria.pdf (this document)Assignment Template.docx (template)Example Assignment.pdf (HD exemplar)Due Date: Friday 16 May, 11:59PM (Week 10)Weighting: Marked out of 100 (worth 30% of course grade)Word Count: 1,500 words maximum(inclusive of main text, headings, in-text citations; excluding

Read More »

Principles of Economics Federal Budget

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 »

LML6003 – AUSTRALIA’S VISA SYSTEM 1 (FAMILY AND OTHERVISAS)

Graduate Diploma in Migration Law LML6003 – AUSTRALIA’S VISA SYSTEM 1 (FAMILY AND OTHER VISAS) Assessment Task 2 – Semester 1, 2025 LML6003 – AUSTRALIA’S VISA SYSTEM 1 (FAMILY AND OTHERVISAS) Instructions: 1. Students must answer all questions as indicated. Make certain all answers are clearly labelled. 2. Make certain

Read More »

Construction Cadetships in the Australian Construction Industry

REPORT TOPICPrepare an Academic Report on the following:‘Construction Cadetships in the Australian Construction Industry’.The report should encompass the following: Your personal evaluation and critique of the key findings in your report including your evaluation of construction cadetships, yourfindings in relation to potential issues/problems with cadetships and your recommendations to improve

Read More »

Assessing Corporate Governance and its Significance

Assessing Corporate Governance and its Significance: A Case Study Analysis Overview: Accounting irregularities have cost investors millions of dollars and, most importantly, adversely impacted their confidence in the financial system. While there have been remarkable improvements in regulatory supervision, auditing framework and reporting transparency, young graduates must assess major corporate

Read More »

Master of Professional Accounting and Accounting Advanced

Assessment 2 – Business Case (CVP) AnalysisUnit Code/Description ACC901 Accounting for Managerial DecisionsCourse/Subject Master of Professional Accounting and Master of Professional Accounting AdvancedSemester S1 2025 Assessment Overview Unit Learning OutcomesAddressed1,2,3,4 and 5Assessment Objective The primary objective of this assessment is to assess the students’ ability to apply CVPanalysis and relevant

Read More »

Urban Design Theory Essay writing

Essays are a major form of assessment at university. Through essays, you develop your understanding of discipline-specific content, strengthen your critical thinking, and develop your ability to translate that thinking into a persuasive written form. This assignment assesses your understanding of the following Unit Learning Outcomes: 1) understand the historic

Read More »

Statutory Interpretation of Disability Discrimination in NSW Law

Foundations of Law 70102 – Assessment Task 3 – Autumn 2025Statutory Interpretation and Research ExerciseDue: Thursday 22 May 2025 by 23.59Length: 2000 words (excluding the headings Part A, Part B and Part C, footnotes andbibliography. Any additional headings that you decide to use will be included in the wordcount)Weighting: 40%Task

Read More »

Can't Find Your Assignment?