Question: A program contains the statement tax = calcTax(sales);. The tax and sales variables have the double data type. Which of the following is a valid
A program contains the statement tax = calcTax(sales);. The tax and sales variables have the double data type. Which of the following is a valid function header for the calcTax function?
a. calcTax(double sales);
b. double calcTax(salesAmount)
c. double calcTax(double salesAmount)
d. double calcTax(int sales);
Step by Step Solution
3.40 Rating (178 Votes )
There are 3 Steps involved in it
c doub... View full answer
Get step-by-step solutions from verified subject matter experts
