Problem Solving with C++ (9th Edition)
Problem Solving with C++ (9th Edition)
9th Edition
ISBN: 9780133591743
Author: Walter Savitch
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
Write the definition of a void function that takes as input two parameters of type int, say sum and testScore the function updates the value of sum by adding the value of testScore. The new value of sum is reflected in the calling environment.
Do you have to use the template prefix for each function in the class defini- tion? Do you have to use the template prefix for each function in the class implementation?
Write a function which takes two integer parameters for values to be added together and returns the result by value. The function may not print anything or read anything directly from the user (i.e. no cin/cout in the function). Assume that the values passed to the function will not be negative, but could be 0 or positive, and will both be integers. The function must implement addition recursively, and cannot use the standalone + operator (only ++) or call any other functions.

Chapter 5 Solutions

Problem Solving with C++ (9th Edition)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education