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 in

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,ab; 11 #include using namespace std; 12 13 14 /*a) Declare prototype void function named getinput which has a double pointer as a parameter (2 marks)*/ 15 16 17 18 19 /*b) Declare prototype void function named calcdiscount which has a double pointer (1st parameter) and float pointer to constant (2nd parameter) as parameters (2 marks)*/ 10 11 12 13 14 15 16 17 18 19 20 121 int main() { double a; const float discount = 0.2; getinput(&a); calcdiscount(&a, &discount); cout

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!