Question: Write the best title lines for the functions that are called by the following main program. Do not supply the blocks for the functions. int
Write the best title lines for the functions that are called by the following main program. Do not supply the blocks for the functions.
int main() { char x = '1', y = '2', z = '3'; string a[5] = {"Amy", "Ben", "Catherine", "Denny", "Edward"}; bool arr[3] = {true, false, true}; double c = 0.1; c = fun(z, y); // (a) sets c to the difference cout << welcome(a[3], "Hello"); // (b) print out Hello Denny change(a[2], 'h', 'y'); // (c) change a[2] to "Cathy" cout << a[2] << endl; // print Cathy if (reset(arr, 3 == 3)) // (d) sets the array to be all true cout << addOn(addOn(a[0],x),y); // (e) function adds on a character; print Amy12 return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
