Question: Question 6 [5 marks] Consider the following natural language specification for a function that looks for resonance when the input matches an integer multiple of

 Question 6 [5 marks] Consider the following natural language specification for

Question 6 [5 marks] Consider the following natural language specification for a function that looks for resonance when the input matches an integer multiple of the wavelengths 5 and 7. Provided an integer input between 1 and 1000, the function returns a string as specified below: If the number is a multiple of 5, then the output is "resonance 5 If the number is a multiple of 7, then the output is resonance 7 If the number is a multiple of both 5 and 7, then the output is "resonance 5 and 7 Otherwise, the output is "no resonance" You can assume that inputs outside of the range 1 to 1000 do not occur. A. What are the sets D; that partition D (the input domain) into a reasonable set of equivalence classes? [answer here - you can answer in natural language, or using mathematical notation. SS] B. Given the sets Di, and the heuristics discussed in class, how would you go about selecting test cases? (answer here - you don't need specific test cases; your answer should characterize how all significant test cases are to be chosen. SS] Question 6 [5 marks] Consider the following natural language specification for a function that looks for resonance when the input matches an integer multiple of the wavelengths 5 and 7. Provided an integer input between 1 and 1000, the function returns a string as specified below: If the number is a multiple of 5, then the output is "resonance 5 If the number is a multiple of 7, then the output is resonance 7 If the number is a multiple of both 5 and 7, then the output is "resonance 5 and 7 Otherwise, the output is "no resonance" You can assume that inputs outside of the range 1 to 1000 do not occur. A. What are the sets D; that partition D (the input domain) into a reasonable set of equivalence classes? [answer here - you can answer in natural language, or using mathematical notation. SS] B. Given the sets Di, and the heuristics discussed in class, how would you go about selecting test cases? (answer here - you don't need specific test cases; your answer should characterize how all significant test cases are to be chosen. SS]

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 Finance Questions!