Question: C programming 9. Suppose a tax is based on the cost of a product (which is an unsigned integer). The tax is described by the
C programming
9. Suppose a tax is based on the cost of a product (which is an unsigned integer). The tax is described by the following table Cost of product Tax $0 to $99 100 to 199 200 to 299 $3.20 $6.40 $9.60 etc.... Write a function called tax which is passed the product cost and returns the tax amount To get full credit, you should not use any conditional statements. The function prototype is double tax (unsigned int cost)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
