
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Edition 8ISBN: 978-1285867410
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Edition 8ISBN: 978-1285867410 Exercise 17
Writing Functions that Require Multiple Parameters
In this exercise, you use what you have learned about writing functions that require multiple parameters to answer Questions.
Given the following function headers and variable declarations, write a function call:
a.
string customerName = "Smith"; double balance = 54000; void printBill(string name, double balance)
b.
int val1 = 10, val2 = 20; void findProduct(int num1, int num2)
c.
double balance = 37500, interest =.10; void newBalance(double bal, double pcnt)
In this exercise, you use what you have learned about writing functions that require multiple parameters to answer Questions.
Given the following function headers and variable declarations, write a function call:
a.
string customerName = "Smith"; double balance = 54000; void printBill(string name, double balance)
b.
int val1 = 10, val2 = 20; void findProduct(int num1, int num2)
c.
double balance = 37500, interest =.10; void newBalance(double bal, double pcnt)
Explanation
a. Function call for function header voi...
C++ Programs to Accompany Programming Logic and Design 8th Edition by Jo Ann Smith
Why don’t you like this exercise?
Other Minimum 8 character and maximum 255 character
Character 255