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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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