Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE C++ ONLY! PLEASE FILL IN THE TABLE AFTER ANSWERING THE QUESTION! THANK YOU! Consider the following functions: voiddoIt(int$a,intb)Ia=a+3;b=b+3 2 volddoIt?(inta,intsb) 1 a=+3;b+=3 void doIt

USE C++ ONLY! PLEASE FILL IN THE TABLE AFTER ANSWERING THE QUESTION! THANK YOU!
image text in transcribed
image text in transcribed
Consider the following functions: voiddoIt(int$a,intb)Ia=a+3;b=b+3 2 volddoIt?(inta,intsb) 1 a=+3;b+=3 void doIt 3 (int \& a, int \& b) 1 aa+3; bt=3 Fix any syntax errors in the bodies of the above functions (without changing the first line of any function) and write a main program that prompts the user for two integer numbers (numl and num2). Then, the main program calls functions doIt, dolt2, and dolt 3 , each time with num I and num2 as arguments. The main program will print the values stored in num 1 and num2 to the screen before and after each function is called. Add a row to the bottom of the final test plan to explain in detail for each function the difference between parameters a and b. You need to prepare and submit ONE SINGIE MS Word document to Canvas (in your lab section) as LastName FirstName Labxy.doc, It must contain: - Only your NAME on page 1 - For each question, in this order: Specify the question number. Initial test plan. After reading the question requirements, but before beginning any coding, create the test case table, below, completed through column Expected Output. Include in your report. Source code. Copy/Paste your final source code. You must include standard "comment header" even if code is provided. Do Not paste a snippet of your source code, it must be copy/pasted. Final test plan. Write your program then complete the test table with actual output results and include in your report. Output results. Paste in a snippet of output showing results for every listed test case in your final test plan, labeled with test case \# Test Table: Add / delete rows from Test Table as necessary Modify column widths as necessary Test both valid and invalid input Test for every output expected If failure is an expected output and it happens then that test Passes Any test that fails means the program must be fixed so that it passes the test o Failing tests need a new test row, ie 1a,1b, etc, showing corrections from original

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions