e of ticket do you require, single or return?" IF the customer chooses "return": Ask: "What rate, Standard or Cheap-Day?" IF the customer replies "Cheap Day" Say: That will be $11.20

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter6: Security And Privacy
Section: Chapter Questions
Problem 18QY
icon
Related questions
Question

Consider the following scenario:

Question: "What type of ticket do you require, single or return?"

IF the customer chooses "return":

Ask: "What rate, Standard or Cheap-Day?"

IF the customer replies "Cheap Day"

Say: That will be $11.20 

ELSE

Say: That will be $19.50 

ELSE

Say: "That will be $9.75

ENDIF 

 

What is the minimum number of tests that are needed to ensure that all the questions have been asked, all combinations have occurred and all replies are given?

  a.

3

  b.

5

  c.

6

  d.

4

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage