Identify the clauses that go with predicate p

Assignment Help Software Engineering
Reference no: EM13663220

1. Use the following predicate to answer (a)-(c) below:

p = a ∧ (~b v c)

(a) Identify the clauses that go with predicate p.

(b) Compute (and simplify) the conditions under which each of the clauses determines predicate p. Show your work for partial credit.

(c) Write the complete truth table for all clauses. Label your rows starting from 1. Use the format in the example underneath the definition of Combinatorial Coverage in Section 3.2. That is, row 1 should be all clauses true. You should include columns for the conditions under which each clause determines the predicate, and also a column for the predicate itself.

2. Use the following predicate to answer (a)-(f) below:

    p = a ∧ (~b v ~c)

(a) Give the complete truth table for all clauses.

(b) Identify all pairs of rows from your table that satisfy General Active Clause Coverage (GACC) with respect to each clause.

(c) Identify all pairs of rows from your table that satisfy Correlated Active Clause Coverage (CACC) with respect to each clause.

(d) Identify all pairs of rows from your table that satisfy Restricted Active Clause Coverage (RACC) with respect to each clause.

(e) Identify all 4-tuples of rows from your table that satisfy General Inactive Clause Coverage (GICC) with respect to each clause. Identify any infeasible GICC test requirements.

(f) Identify all 4-tuples of rows from your table that satisfy Restricted Inactive Clause Coverage (RICC) with respect to each clause. Identify any infeasible RICC test requirements.

3. Given the below Truth Table, identify all pairs of rows that satisfy RACC for major clause a (Pa).

 

a

b

c

d

P

1

T

T

T

T

T

2

T

T

T

F

T

3

T

T

F

T

T

4

T

T

F

F

T

5

T

F

T

T

T

6

T

F

T

F

T

7

T

F

F

T

T

8

T

F

F

F

T

9

F

T

T

T

F

10

F

T

T

F

F

11

F

T

F

T

F

12

F

T

F

F

F

13

F

F

T

T

F

14

F

F

T

F

F

15

F

F

F

T

F

16

F

F

F

F

F

    4. Answer questions (a) and (b) for the method threePred() below:

public String threePred (int x, int y, int z)

{

boolean w;

if (x <= y)

     w = true;

else

     w = false;

if (w  && x+y == 10 && z < x)

     return "A";

else

     return "B";

}

(a) Identify test inputs for threePred() that achieve Restricted Active Clause Coverage (RACC).

(b) Identify test inputs for threePred() that achieve Restricted Inactive Clause Coverage (RICC).

5. Consider the following deterministic finite state machine and answer questions (a)-(c):

Current State

Condition

Next State

Idle

a v b

Active

Active

a ^ b  

Idle

Active

¬b

WindDown

WindDown

a

Idle

(a) Draw the finite state machine.

(b) This machine does not specify which conditions cause a state to transition back to itself. However, these conditions can be derived from the existing conditions. Derive the conditions under which each state will transition back to itself.

HINT: Take the negation of the conditions on each outgoing transition, and "and" them together.

(c) Find CACC tests for each transition from the Active state.

6. Use the following function to answer (a)-(b) below:

f = ab + a¯bc + ¯a¯bc

(a) Draw the Karnaugh maps for f and ¯ f.

(b) Find the nonredundant prime implicant representation for f and ¯ f.

Reference no: EM13663220

Questions Cloud

Find how far into the field region does the beam penetrate : A beam of electrons moving in the x direction at 8.8 x 106 m/s enters a region where a uniform magnetic field of 430 G points in the y direction. Find how far into the field region does the beam penetrate
Ac voltage across a capacitor-what is the frequency : The AC voltage across a capacitor with C = 1.2 µF has an amplitude of V     max = 16 V, and the current during the capacitor has an amplitude of 5.0 mA. What is the frequency?
Determine how far does the train move : A train is traveling down a straight track at 20m/s when the engineer applies the brakes, Determine how far does the train move during a 40 second time intervals starting at the instant the brakes are applied
Suppose the scaffold is a uniform beam : An 80 kg window cleaner sits 1.8 meters from the end of a 5 meter long scaffold that is supported at either end by a vertical wire. Suppose the scaffold is a uniform beam by a mass of 40 kg and find the tension in each wire.
Identify the clauses that go with predicate p : Compute and simplify the conditions under which each of the clauses determines predicate p. Show your work for partial credit - Give the complete truth table for all clauses.
Compute what force is necessary to hold it in place : In a high magnetic field experiment, a conducting bar carrying 13.5 kA passes through a 30 centimeter long region containing a 24.0 T magnetic field. compute what force is necessary to hold it in place
If sirius abruptly stopped shining : The star Sirius is a distance of 8 light-years from the earth. If Sirius abruptly stopped shining, how much longer would it be seen on earth?
Calculate the maximum torque developed by the motor : An electric motor consists of a 70 turn coil 3.0 centimeter in diameter, mounted between the poles of a magnet that produces a 0.07 T field. Calculate the maximum torque developed by the motor
Microwave oven produces microwaves of frequency : A certain microwave oven produces microwaves of frequency 2450 MHz by a power of 500 W. How long must it take to heat 556 g of water, initially at room temperature, to the boiling point? Suppose that all the microwave energy is engrossed by the water..

Reviews

Write a Review

Software Engineering Questions & Answers

  Prepare a decision table to assist you decide what to do

prepare a decision table to assist you decide what to do for the day. if it is a weekday and it is not a holiday then

  Describe what actions you would take and in what sequence

Consider a situation in which your team has just finished the design phase and is about to start coding. Your key applications designer just walked in and handed you a resignation notice.

  For the prototype user interface

For the prototype user interface, design a switchboard that leads from main sections to sub-sections of related system tasks. The main sections may include member information, registration, payments

  Emergency control room for a call-logging component

Design the Requires and the Provides interfaces of at least two components that might be used in a system in an emergency control room for a call-logging component that records calls made.

  Which is not a factor to consider in software evaluation

Which is not a factor to consider in software evaluation and peer reviewers are the key participants in which activity - Peer reviewers are the key participants in which activity?

  Developing soa based it solutions

This Discussion will focus on the different levels of abstractions within the service interface layer and importance of abstraction and role of layering when constructing SOA-based IT solutions.

  In software engineering one can find various life cycle

software development modelsin software engineering one can find various life cycle models. some examples include the

  Compare and contrast the ideas of semantic complexity

Software Metrics Question.  Compare and contrast the ideas of semantic complexity and structural complexity of a computer program. Consider both the conceptual differences in measuring these and the operational differences.

  Calculation of the hypotenuse

Construct a C# console application that calculate the hypotenuse of a right triangle. The calculation of the hypotenuse of a right triangle is based on the Pythagorean Theorem:

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Grassroots computing changes way software is designed

Describe how grassroots computing changes the way software is designed, developed, tested, and maintained in typical organization. Write dwon the advantages and disadvantages of grassroots computing?

  What is the normal value assumed for k

A paging company operates a paging transmitter on a frequency of 740Mhz. What is the reachable range if the transmit antenna is located at 450' and we assume the receivers are located 3' above the ground (belt level?)

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