Question: Given an incomplete program below, complete the program by filling in the blanks with an appropriate C++ statement according to the instructions stated in the

 Given an incomplete program below, complete the program by filling inthe blanks with an appropriate C++ statement according to the instructions stated

Given an incomplete program below, complete the program by filling in the blanks with an appropriate C++ statement according to the instructions stated in the comments. Note: Please write C ++ statements WITHOUT blank spaces unless it is absolutely needed. Example: int num, a,b; 1 #include using namespace std; 2 3 4 /*a) Declare prototype function named getTime to return a type double pointer and it has an integer as parameter (2 marks)*/ 15 6 17 18 19 19 /*b) Declare prototype void function named CalcTotSalary that have two double pointers (1st & 2nd parameters) and integer (3rd parameter) as parameters (2 marks)*/ 11 12 13 14 int main() { 15 16 int num; double salary = 0; cout > num; double *p = getTime(num); CalcTotSalary(P, &salary, num); cout 17.00) 54 55 56 *salary = 157 else 158 59 60 *salary = 61 }

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!