ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 19 May 2017 My Price 7.00

SOFTWARE TESTING

INTRODUCTION TO: SOFTWARE TESTING

For the following questions (a)–(c), consider the method FSM for a (simpli- fied) programmable thermostat. Suppose the variables that define the state and the methods that transition between states are:

partOfDay : {Wake, Sleep} temp : {Low, High}

// Initially "Wake" at "Low" temperature

// Effects: Advance to next part of day public void advance();

// Effects: Make current temp higher, if possible public void up();

// Effects: Make current temp lower, if possible public void down();

  1. (a)  How many states are there?

b)In this problem we will generalize the idea used in part(a). Let there be n state variables X1, X2, . . . , Xn. Each state variable Xi can take mi possible distinct values. In worst case how many states are required for designing the finite state machine? Do not consider any kind of state minimization.

  1.  Hint: A good way to start is to play with small examples. You may consider, for instance, n = 3 and m1 = 2, m2 = 3, m3 = 2. Try to work out manually in this case that how many states are required in worst case.

Answers

(11)
Status NEW Posted 19 May 2017 02:05 AM My Price 7.00

-----------

Not Rated(0)