Question: 3 . Write a small C + + program that uses a static variable to share a single value between multiple C + + function
Write a small C program that uses a static variable to share a single value between multiple C function calls. Have the function take a dollar amount argument and return the sales tax required for merchandise of that cost, with the static variable defining the tax rate. Submit code, sample run and the.cpp file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
