Calculate halstead''s basic measures on the factorial code

Assignment Help Database Management System
Reference no: EM13894615

Calculate Halstead's basic measures on the factorial code given below:

intfact(intn)

{
if(n == 0 )
{

return1;

}

else

}

{ return n * fact (n-1);

}

operators:

int 2; ( ) 3; { } 3;

if 1; == 1;

return 2; ‘‘;'' 2; else 1; * 1; -1

operands:

fact 2; n 4; 0 1; 1 2; basic counts
11 = 10 12 = 4 1 = 14 12* = 1
N1 = 17 N2 = 9 N = 26
Est N = 10 * log2 10 + 4 * log2 4 = 10 * 3.32 + 4 * 2.0 = 33.2+ 8.0 = 41.2
V = 26 * log2 14 = 26 * 3.8 = 98.8
V* = 3 log2 3 = 3 * 1.6 = 4.8
L = 4.8 / 98.8 = 0.048

 

Reference no: EM13894615

Questions Cloud

Determining the elements of a histogram : If you created a histogram what particular "elements" of a Histogram do you want the reader to notice? What is the overall impression that you expect the reader to have from looking at the Histogram?
Question regarding the irb ethic directives : Give details on following items that have shaped the modern IRB (Institutional Review Board). Then compare and contract the directives analyzing how each is important to the IRB ethic directives. One page to each of the three directives:
Participant swear words neutral : A study is being conducted to see if swearing can help reduce pain. Each participant is asking to plunge their hand in ice as long as the pain would allow. In one condition, the participant repeatedly yelled their favorite curse word. In the other..
Iq scores form a normal distribution : IQ scores form a normal distribution with µ = 100 and σ = 15. Individuals with IQs above 140 are classified in the genius category. What proportion of the population consists of geniuses? Individuals between 90 and 110 are classified as average. W..
Calculate halstead''s basic measures on the factorial code : Calculate Halstead's basic measures on the factorial code
What is a virtual tape system and what is it used for : What is a virtual tape system and what is it used for?
Why do you think jon is taking weeks to directly : Why do you think Jon is taking weeks to directly communicate with stakeholders about the new system?Why do you think Jon and the system administrators decided to outsource the software for this system to an ERP company rather than developing it fro..
Alternative way of representing that same information : Explain how fonts or formats might incorrectly be used to represent information, and give an alternative way of representing that same information that would be suitable for analysis by IBM SPSS.
What are the advantages of altitude online adopting : What are the advantages of Altitude Online adopting a new ERP system compared to simply connecting existing corporate systems? Why isn't an out of the box ERP system enough for Altitude Online? What additional needs does the company have? Is this ..

Reviews

Write a Review

Database Management System Questions & Answers

  Synchronization between the database and the transaction log

A point of synchronization between the database and the transaction log is called a(n): An ACID transaction is one that is:

  Selecting opies of book titled the big magic

How many copies of the book titled „The big magic? are owned by the local library whose name is "Newtown" library?

  How protocol ensures serializability and deadlock freedom

To lock any other vertex, the transaction must have visited all the parents of that vertex and must be having a lock on one of the parents of the vertex. Show that the protocol ensures serializability and deadlock freedom.

  Construct a use-case diagram

Construct (i) a use-case diagram (ii) a class diagram (iii) System Sequence Diagram (iv) detailed Sequence Diagram or diagrams as appropriate and (v) a state chart for a car object/class according this scenario. Include appropriate properties for ..

  Write the vbscript code

Write the VBScript code that initializes all the variables in the numArray(100) to the value numArray(0)=1, numArray(1)=2,&#-123;,numArray(100)=101

  Define set of relational schemas and identify primary keys

We want to construct a database for a world-wide package delivery company. Define a set of relational schemas and identify primary and foreign keys. Try not to include redundant schemas.

  Describe when you would use an open source database

Based on the Schumacher (2010) article, describe when you would use an open source database and when you would not

  Create a data model of process showing entity associations

Identify the valid entities, and explain why the rejected entities should no be modeled and create a data model of the process showing entity associations.

  Design a high-level conceptual view of a data warehouse

Design a high-level conceptual view of a data warehouse using Microsoft Visio that shows the following: Integration layers and The data warehouse

  The traditional retail model has focused on finding

assignment 3 how is technology changing the face of business today?the traditional retail model has focused on finding

  Let t1 encompass the operations rx wx ry wy and t2 have the

let t1 have the operations rx wx ry wy and t2 have the operations rx wx. consider adding either a commit or abort to

  Creating a database design in visio

Creating a Database Design in Visio-  Create a database diagram with the entities and attributes that the scenario identified (i.e., a college tracking students, courses, and instructors)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd