Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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

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

Excel As Your Database

Authors: Paul Cornell

1st Edition

1590597516, 978-1590597514

More Books

Students also viewed these Databases questions