diff_months: 21

COMP-5413 - Default Close Operation & Software Engineering - Engineering Assignment Help

Flat 50% Off Order New Solution
Added on: 2022-08-20 00:00:00
Order Code:
Question Task Id: 401621
  • Subject Code :

    COMP-5413

  • Country :

    Canada

Assignment Task
    


Objectives:

  • Write a program that takes a Java source file as an input. The program needs to collect the following pieces of information:
  • Collect all the method calls and constructors in each method body. (2)
  • For each method body, identify the declared variables along with their line numbers. (3)
  • For each method call (mc), if the receiver of the method call is a variable (i.e., SimpleName, check documentation), determine the methods that are called on
  • this variable prior to mc and located within the same method body. 
  • Collect all exceptions you catch in a method body (2)
  • Method Declaration: createAndShowGUI()

 

Method calls and constructors: JFrame, setDefaultCloseOperation, JLabel, setPreferredSize, Dimension, getContentPane, add, pack, setVisible
Clue: To solve this problem, you need to determine the ASTNode that represents a variable declaration. Check the documentation.
Sample Output:

  • Variable: frame, Line Number: x
  • Variable: emptyLabel, Line Number: y

I will show only one example for this case. You need to find all the others. Look at the method call: frame.pack(). Here, the receiver variable is frame. Method declaration that contains the the method call is: createAndShowGUI()Now, you need to look for all the methodsthat are called on thisframe variable prior calling frame.pack() and also located in the same method body (i.e., createAndShowGUI()).


Sample Output:
1
- Method Declaration: createAndShowGUI()
2- Method Call: frame.pack(), Receiver variable: frame
3- Methods called on frame: setDefaultCloseOperation, getContentPane,
 

Clarification:
Consider the following expression:
1-
For, the add() method call, the receiver is frame.getContentPane(). However, when you
2-Check frame.getContentPane(), the receiver is frame and it is a variable

 

This COMP-5413 Management Assignment has been solved by our Management Experts at Exam Question Bank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
    

Be it a used or new solution, the quality of the work submitted by our assignment Experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

  • Uploaded By : Katthy Wills
  • Posted on : February 24th, 2020
  • Downloads : 0
  • Views : 374

Order New Solution

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more