Explain and show all details on how to design the test cases

Assignment Help Computer Engineering
Reference no: EM133516695

Case Study:

Consider the following program:
Input A, B // A and B are real variables
A = A - B
C = A * 2
Output C // C is a real variable

Assume that there are only four feasible arithmetic operators, namely, + (addition), - (subtraction), *(multiplication) and / (division).
You are required to adopt the testing objective of detecting ANY possible incorrect use of
arithmetic operators in this program.
The above program contains two arithmetic operators, namely, "-" in the statement of "A = A
- B" and "*" in the statement of "C = A * 2". By "ANY possible incorrect use of arithmetic
operators", it means that "-" is incorrect, or "*" is incorrect, or both "-" and "*" are incorrect

Requirement - to improve understanding of the test activities as well as how to generate test cases with reference to the code of the program under test.

Question 1: Explain and show all details on how to design the test cases for the above testing objective.

Question 2: Suppose you use test case (A=8, B=2) to test the above program. Is this test case able to achieve the required testing objective? Provide your answer with justifications.

Question 3: Based on your design in Task 1, what is (or are) the concrete test case (or cases) that can achieve the above testing objective? Explain and justify your concrete test case (or cases).

Question 4: Given B=8, find all possible values of A so that the concrete test cases (A,B) cannot achieve the above testing objective? Explain and justify the correctness of your solution.

B. and develop a program to find them automatically, or prove the exhaustiveness of test cases

 

Reference no: EM133516695

Questions Cloud

Ethnic and racial groups have formed organized crime : Asian Organized Crimes: How did the tongs come into existence? What other ethnic and racial groups have formed organized crime organizations
Provide three pieces of evidence showing that your scripts : Provide three pieces of evidence showing that your scripts were successful: 1) a copy of your scripts; 2) clear screenshots of the Task Scheduler interface show
Criminal proceedings regarding boston marathon bombing : Explain how criminalistics directly impacted the outcome of the criminal proceedings regarding the Boston Marathon Bombing
Describe ways school counselors can leaders at school site : Describe four ways school counselors can be leaders at their school site. Describe the elements in the ASCA model that pertain to school counselor leadership.
Explain and show all details on how to design the test cases : Explain and show all details on how to design the test cases for the above testingobjective. how to design the test cases for the above testing objective.
Literature review sections. : Read five new articles and review their survey of the background (if they have one) and literature review sections.
Discuss the strip searching practice of all prisoners : Discuss the strip searching practice of all prisoners being held; even those charged with minor traffic offenses.
God reveals himself to our natural reason through creation : If God reveals himself to our natural reason through creation why, according to Christian belief, does God also reveal himself a
Explain ratio of risks versus benefits to conducting study : Explain the ratio of risks versus benefits to conducting this study. Do you feel that the contributions of this study outweigh the costs?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write a program that can be used by a concert hall

Write a program that can be used by a concert hall to sell tickets for performances. The auditorium has 15 rows of seats, with 30 seats in each row.

  Print the list in reverse order

Given a tree of n notes as height h, turn the number of occurrences of a given object.

  Why some ms victims might elect

Outline a course of of action that you think would successfully increase the number of NARCOMS participants by 60000 over the next 12 months.

  What is the purpose of the uniform resource locator

How is a Web markup language different from a programming language? What is the purpose of the Uniform Resource Locator?

  Maintain an electronic address book

Develop a software that can be used to maintain an Electronic Address Book. An address book contains details of persons like a person's first and last names, address, city, state, zip and phone number.

  Do you believe that strategic advantages obtained

Do you believe that strategic advantages obtained by the effective use of IT are sustainable? Why or why not? Provide at least two examples of strategic

  Compromise confidential and sensitive military information

a breach of security on the contractor's computer systems could compromise confidential and sensitive military information

  A paint calculator that gives the customer the area

Create a CustomerData.txt file with 10 Customers including Customers Name, Room Name, Length of the Room, Width of the room and Height of the room.

  What is the total distance that the disk arm moves

What is the total distance (in cylinders) that the disk arm moves to satisfy all the pending requests for each of the following disk-scheduling algorithms?

  Do you think the conversion strategy was appropriate

Do you think the conversion strategy was appropriate? Regardless of whether you agree, what other conversion strategy could have been used?

  Question 1a explain the following biometric techniques- i

question 1a explain the following biometric techniques- i retina scan ii fingerprint scan iii iris scan. your answer

  Write a program to plot the given face

Write a program to plot the following face. Provide a class FaceViewer and a class Face Component. Write a program that draws a picture of a house.

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