Question
Software Engineering Question 1. The table is given below lists 6 metrics for each of the 20 methods of a Java class named Directory. The
Software Engineering Question
1. The table is given below lists 6 metrics for each of the 20 methods of a Java class named Directory.
The meaning of the 6 metrics is as follows: Visibility: the visibility modifier of the method one of private, protected, or public #Instructions: the number of Bytecode instructions Bytesize: the total number of Bytes used by all instructions of this method CyclomaticComplexity: the cyclomatic complexity (number of decision points + 1) #Parameters: the number of formal parameters/arguments #LocalVariables: the number of local variables declared in the method
As the Java programming language supports method overloading, there are 2 methods named list and 7 methods named listFiles that are distinct and all have different method parameters/arguments.
Answer the following questions and refer back to the table to illustrate/justify your answers: a. List the type of scale (Nominal, Ordinal, Interval, Ratio, or Absolute) for each of the 6 metrics. b. Do the metrics presented in the table support the statement most methods are small? Justify your answer. c. Comment on how the metrics presented in the table support the statement Software is not normal. d. Provide suitable summary measures (for example, average/mean, median, standard deviation, etc.) for (#Instructions, CyclomaticComplexity, and #LocalVariables) that provide an accurate, statistically relevant summary of the distribution of the corresponding metric. Please justify the choice of summary measures and list the corresponding values (e.g., median of #Parameters = 1). e. You have the time to thoroughly test 3 of the 20 methods of the class Directory, but no time to test the other 17 methods. i. What is the purpose of software testing? What is to be uncovered during software testing? ii. Describe the process of how you will choose the 3 methods to test and justify why this is a good process iii. List the 3 methods you will test as the result of applying your process
P.S:
- Please answer in a proper format - Please answer in a typed or softcopy format - Please don't do it with pen or pencil, do it with software or tools - If you want to ask any question, ask it in the comment section after posted an answer to enable comment, I will try to answer it
Thanks!
ClassName jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory jdf/tools/io/Directory MethodNameStep 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