The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
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();
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.