Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedThe 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 MethodName canRead can Write exists filter getAbsolutePath get Filter getName list list listFiles listFiles listFiles listFiles listFiles listFiles listFiles mkdir printFiles Visibility public public public public public public public private public public public public public public public public public public public private ByteSize #Instructions CyclomaticComplexity #Parameters #LocalVariables 48 27 2 1 3 27 15 1 1 2 8 4 1 0 1 8 4 1 0 1 8 4 1 0 1 99 51 1 1 3 8 4 1 0 1 14 10 1 1 4 5 3 1 0 1 8 4 1 0 1 9 5 1 1 2 8 4 1 0 1 9 5 1 1 2 9 5 1 1 2 10 6 1 1 2 144 8 1 9 82 41 4 2 7 11 7 1 2 3 OAVNO U AU AW 6+ NEWONNNANAAAWAANW PONNI 8 1 28 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Auditing Information Systems Enhancing Performance Of The Enterprise

Authors: Abraham Nyirongo

1st Edition

1490754997, 9781490754994

More Books

Students also viewed these Accounting questions