Problem Solving with C++ (10th Edition)
Problem Solving with C++ (10th Edition)
10th Edition
ISBN: 9780134448282
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
Question
Book Icon
Chapter 5.4, Problem 20STE
Program Plan Intro

Testing:

  • It denotes an activity to check whether actual results match expected results.
  • It guarantees that software system is defect free.
  • It involves execution of a software component for evaluating one or more interest properties.
  • It identifies errors, gaps or requirements that are omitted related to actual requirements.
  • It could be performed manually or using automated tools.
  • It can be classified as white or black box testing.
  • The manual testing would include testing of software short of any tool.
    • The tester behaves as an end-user.
    • It tests software for identifying any behavior that is unexpected.
    • The different stages include unit, integration, system as well as user acceptance testing.
  • The automation testing uses software to test product.
    • It includes automation for a manual process.
    • The test scenarios are been re-run that are been performed manually.
    • It is used for testing application from performance, load in addition to stress view point.

Driver program:

  • The driver program contains program’s main function.
  • It is responsible for launching program operations.
  • It is responsible for converting user program into physical execution unit termed as task.
  • Each function must be designed, tested and coded as a discrete unit from rest of program.
  • It denotes a testing program for functions or statement that is been written in code.
  • It tests the functionality usually for debugging as well as code verification.

Given addTax function:

//Define method addTax

void addTax(double taxRate, double& cost)

{

//Compute cost

cost = cost + ( taxRate/100.0 ) * cost;

}

Explanation:

  • The method “addTax()” takes input values as arguments.
  • It computes the cost by using input values entered by user.
  • The result of operation is been displayed.

Blurred answer
Students have asked these similar questions
Test on Functions
Describe the parameters of the function addfirst.
Given the following code, assuming arr is allocated using malloc() and passed to f1(), 1.Why does the function f1() in the problem take a parameter with type void*?

Chapter 5 Solutions

Problem Solving with C++ (10th Edition)

Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr