Question: C++ 1- Write a function that returns the sales tax, given the price of an item. Assume a global constant called SALES_TAX_RATE has already been

C++  C++ 1- Write a function that returns the sales tax, given

1- Write a function that returns the sales tax, given the price of an item. Assume a global constant called SALES_TAX_RATE has already been declared. 2- A health club membership is $40 per month. Write a function call to calculate the cost of a year membership Display the result returned. The function header is as follows: double calculateCost(double memberRate, int months) 3- Write a prototype for a void function called calculate. The function should have three parameters: a double, a reference to a double, and an int which has a argument of 2. default 4- Write the function heading for a void function called max that has three int paramenters, numl, num2, and greatest. The first two parameters receive data from the caller and greatest returns a value. Be sure to indicate which parameters are pass by value and which are pass by reference with the appropriate syntax. 5- Define an array of integers containing the first five odd 6- Write a statement that stores the value 10 in the last 7- Write a loop printing out the contents of the above array. numbers. element of the array. 8- Write a loop counting the number of elements in the above array that are even

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!