Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1). The items that appear between the parentheses following a function\'s name a

ID: 3536167 • Letter: 1

Question

1). The items that appear between the parentheses following a function's name are called ____________. Example: function pow: pow(2,3)



2). Assuming that the message variable contains the string "Happy holidays", the
message->IndexOf("days",1) method returns



3). How many parameters does the function calcGrossPay require? void main() { float hours = 8; float payRate = 5.5; // per hour float grossPay = 0.0; grossPay = calcGrossPay (hours, payRate); displayGrossPay(grossPay); } float calcGrossPay(float hrs, float payRt) { return hrs * payRt; } void displayGrossPay(float gPay) { cout <<"Gross Pay is "<< gPay << endl; }



Explanation / Answer

1). The items that appear between the parentheses following a function's name are called ARUMENTS. Example: function pow: pow(2,3)

answer: ARGUMENTS

2). Assuming that the message variable contains the string "Happy holidays", the
message->IndexOf("days",1) method returns

answer: a

3). How many parameters does the function calcGrossPay require? void main() { float hours = 8; float payRate = 5.5; // per hour float grossPay = 0.0; grossPay = calcGrossPay (hours, payRate); displayGrossPay(grossPay); } float calcGrossPay(float hrs, float payRt) { return hrs * payRt; } void displayGrossPay(float gPay) { cout <<"Gross Pay is "<< gPay << endl; }

answer: 2