Question: For the following program: 1: read x,y,z; 2: type = scalene; 3: if (x == y or x == z or y == z) type

For the following program:

1: read x,y,z;

2: type = scalene;

3: if (x == y or x == z or y == z) type =isosceles;

4: if (x == y and x == z) type =equilateral;

5: if (x >= y+z or y >= x+z or z >= x+y) type =not a triangle;

6: print type;

Calculate Halsteads (c1) number of operators; (c2) number of operands; (c3) program vocabulary; (c4) occurrences of operators in the program; (c5) occurrences of operands in the program; (c6) program length; (c7) program volume; (c8) program estimated length.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!