91.3913 Assignment 4 Answers April 5, 2002 1. Cyclomatic complexity Either of these two representations is correct (simple sequences can be collapsed to.

Slides:



Advertisements
Similar presentations
Simple Graph Warmup. Cycles in Simple Graphs A cycle in a simple graph is a sequence of vertices v 0, …, v n for some n>0, where v 0, ….v n-1 are distinct,
Advertisements

Chapter 6 Path Testing Software Testing
CYCLOMATIC COMPLEXITY 1. Invented by Thomas McCabe (1974) to measure the complexity of a program ’ s conditional logic Cyclomatic complexity of graph.
1 QUANTITATIVE DESIGN AND ANALYSIS MARK 2048 Instructor: Armand Gervais
March 25, R. McFadyen1 Metrics Fan-in/fan-out Lines of code Cyclomatic complexity Comment percentage Length of identifiers Depth of conditional.
Fall 2009ACS-3913 R McFadyen1 Persistent Objects Persistent objects are objects that continue to exist after the application program terminates Persistence.
March 27, R McFadyen1 OR Mapping - Example When we map this structure to a Relational Database, we are creating an object-to-relational mapping.
Nov R. McFadyen1 Metrics Fan-in/fan-out Lines of code Cyclomatic complexity* Comment percentage Length of identifiers Depth of conditional.
Prepared by Charlie Cook The University of West Alabama © 2009 South-Western, a part of Cengage Learning Compound Interest: Assignments Chapter 16.
Software engineering for real-time systems
March R. McFadyen1 Software Metrics Software metrics help evaluate development and testing efforts needed, understandability, maintainability.
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
March 31, R McFadyen1 Persistent Objects Persistent objects are objects that continue to exist after the application program terminates Persistence.
Percentages (%) % Means out of 100. So 20% is the same as; 20 parts out of 100, or 20p in the £
Determine whether each curve below is the graph of a function of x. Select all answers that are graphs of functions of x:
Spreadsheets In today’s lesson we will look at:
Writing one number as a percentage of another
Business Math Assignment Press F5 to begin to playing this slide show.
F A T R N T EP N I D A Much of mathematics is based on patterns, so it is important to study patterns in math. We use patterns to understand our world.
Percentages (%) % Means out of 100. So 20% is the same as; 20 parts out of 100, or 20p in the £
Prime Factorization.
Bell Work: Tax and Tip! Your bill is $ What is your total after you leave a 20% tip and pay 5% tax? Method 2 Multiply the price by 125% since.
Computer Science: A Structured Programming Approach Using C1 3-7 Sample Programs This section contains several programs that you should study for programming.
Stoichiometry Loose Ends: Limiting Reactants, Percentage Yield, and Percentage Error.
Excel. Spreadsheet Software  What Is a Spreadsheet, and How Does It Work? A spreadsheet program allows users to perform simple and complex sorting. It.
Spreadsheets Spreadsheets. What is a spreadsheet? A spreadsheet is a program used for performing calculations on tables of numbers. It can also often.
Spreadsheet Lesson 2 Class 8E. Lesson Objective To understand what a formula & function is. To understand the difference between formulas and functions.
 decimals/cc-7th-fracs-to-decimals/v/converting-fractions-to-decimals-example.
Ratios! Station SIX DIRECTIONS: Determine the correct answers when comparing numbers in ratio form. Converting: Fraction ratio percentage decimal.
Sentence Structure Jeopardy!
BASIS PATH TESTING.
PERCENT INCREASES. NS 1.4 Calculate given percentages of quantities and solve problems involving discounts at sales, interests earned, and tips. Today’s.
Addition and Substraction
Theory and Practice of Software Testing
Information Technology IMS5024 Information Systems Modelling Review of topics.
Prime Factorization. What is Prime Factorization? The process of converting a number into a product of prime numbers.
TERM 2: READING PAPER Grade 8 English. When? Where? 12 th June :15 – 11:15 (1 hour)
Business Math Assignment
BASIS PATH TESTING.
Number Theory The Integers; Order of Operations Rational Numbers
Calculating Percent Change
Formulas A formula is a sequence of values, cell references and operators that produce a new value. = E8 + 3*(E10 - E11) Formulas always start with an.
ASSIGNMENT NO.-2.
Associative Query Answering via Query Feature Similarity
3-7 Sample Programs This section contains several programs that you should study for programming technique and style. Computer Science: A Structured.
Year 11 Mini-Assessment 1 HIGHER Fractions, Decimals,
FOUR RULES OF WHOLE NUMBERS
Point Question Point Question Point Question Point Question
Solution to problem 4. a) Control flow graph art Start k = i + 2 * j
True or False: {image} is one-to-one function.

Conversions of Percentages & Fractions
Entity-Relationship Diagram (ERD)
Lesson 3: Complex Formulas
Business Math Assignment
Check even answers: p.763.
Question 4.
Convert to scientific notation
SPREADSHEETS Who can provide a definition for a “spreadsheet?” Answer
Calculating Percent Change
Business Math Assignment
Unit 1 – Section 4 “Recursive and Explicit Formula” Part 2
Play Along with the Contestants! Mark How Many Answers You Get Right
1. Cyclomatic complexity
Percentage of a Quantity – Non-Calculator – 5s – Four in a Row
Percentage – Increase – Calculator – Four in a Row
Percentage – Increase & Decrease – Multiplier – Four in a Row
Complete the family of four
True or False True or False
Simple Interest – Calculator – Four in a Row
Presentation transcript:

Assignment 4 Answers April 5, Cyclomatic complexity Either of these two representations is correct (simple sequences can be collapsed to a single node). CC = #edges - #nodes +2 = =2 CC = #edges - #nodes +2 = =2 4 marks Total of 27 marks

Assignment 4 Answers April 5, WMC, using technique a), is the number of methods in a class: SalesLineItem2 ProductSpecification4 Sale6 3. LCOM, using technique a) for each attribute calculate: #methods using the class number of attributes then calculate the average of those values; convert the average to a percentage; subtract that from 100: SalesLineItem (two methods and two attributes) average of 2/2 and 2/2 is 1 ==> 100% ==> = 0 ProductSpecification (four methods and three attributes) average of 2/4, 2/4, and 2/4 is 0.5 ==> 50% ==> = 50 3 marks 4 marks

Assignment 4 Answers April 5, An O-R mapping: ClassMaps to Relation Sale SalesLineItem AssociationMaps to Relation/FKey containsFK in SalesLineItem (refers to Sale) describesFK in SalesLineItem (refers to ProductSpecification) ProductSpecification SalesLineItem Sale 16 marks

Assignment 4 Answers April 5, 2002 Relational Schema Sale ProductSpecification SalesLineItem dateisComplete... quantitysOID descriptionpriceitemID sOID slOID pOID

Assignment 4 Answers April 5, 2002 Rows: Sale ProductSpecification SalesLineItem dateisComplete... quantitysOID descriptionpriceitemID sOID slOID pOID 4/5/2002false Product 1$