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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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