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

1 Expert Approved Answer
Step: 1 Unlock

c doub... View full answer

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 Microsoft Visual C# Introduction Questions!