Question: c++ language need documentation Lab #7 Testing CS1B 50 pts Name 1: Name2: Class Day / Time: Due Date: Lab #7 - Testing It is

 c++ languageneed documentation Lab #7 Testing CS1B 50 pts Name 1:
c++ language
need documentation

Lab #7 Testing CS1B 50 pts Name 1: Name2: Class Day / Time: Due Date: Lab #7 - Testing It is a well-known fact that cartoon sheep love chocolatel However, if sheep get too much chocolate it is unhealthy for them. So one sheep can only consume up to 4 chocolate bars before they get sick. Farmer Pete will provide a number of sheep and a number of chocolate bars. He needs your help to write a program to calculate how many bars each sheep gets and how many chocolate bars are left over. To avoid that some sheep be upset, Farmer Pete would like to ensure that at any give time all sheep would receive the same number of chocolate bars. Use functions for input/output and each calculation. Ensure that you validate the input(s). Before writing the code, create a test plan for this program. Your test plan should include test cases for expected, unexpected and boundary Input values. In addition, you should perform Black Box and White Box testing. Add test cases as you go (if necessary). The test plan should include a column to indicate the test case number, one column to indicate the category (expected, unexpected or boundary input), one column to indicate the type of testing (Black or White Box), one column for input, one column for output, one column for test results (pass or fail) including the expected output values and one column for commentsotes. Then, select 3 test cases and write test drivers to exercise your code and run your 3 selected test cases Output should be provided in a reasonable format, showing each input value(s) and the output value(s). Please include the test case number as part of the output Turn in as a single PDF file (IN THIS ORDER) 1. Test Plan (you may use a spreadsheet to create the test plan) 2. Screen I/O Output, showing the 3 selected test cases 3. Your header file 4. A listing of main.cpp (conforming to style discussed in class) 5. A listing of your functions Lab #7 Testing CS1B 50 pts Name 1: Name2: Class Day / Time: Due Date: Lab #7 - Testing It is a well-known fact that cartoon sheep love chocolatel However, if sheep get too much chocolate it is unhealthy for them. So one sheep can only consume up to 4 chocolate bars before they get sick. Farmer Pete will provide a number of sheep and a number of chocolate bars. He needs your help to write a program to calculate how many bars each sheep gets and how many chocolate bars are left over. To avoid that some sheep be upset, Farmer Pete would like to ensure that at any give time all sheep would receive the same number of chocolate bars. Use functions for input/output and each calculation. Ensure that you validate the input(s). Before writing the code, create a test plan for this program. Your test plan should include test cases for expected, unexpected and boundary Input values. In addition, you should perform Black Box and White Box testing. Add test cases as you go (if necessary). The test plan should include a column to indicate the test case number, one column to indicate the category (expected, unexpected or boundary input), one column to indicate the type of testing (Black or White Box), one column for input, one column for output, one column for test results (pass or fail) including the expected output values and one column for commentsotes. Then, select 3 test cases and write test drivers to exercise your code and run your 3 selected test cases Output should be provided in a reasonable format, showing each input value(s) and the output value(s). Please include the test case number as part of the output Turn in as a single PDF file (IN THIS ORDER) 1. Test Plan (you may use a spreadsheet to create the test plan) 2. Screen I/O Output, showing the 3 selected test cases 3. Your header file 4. A listing of main.cpp (conforming to style discussed in class) 5. A listing of your functions

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