Question: c code only Construct a program for the following problem. Assume that each input record contains a taxpayer's name, the value of a personal property
c code only
Construct a program for the following problem. Assume that each input record contains a taxpayer's name, the value of a personal property belonging to the taxpayer, and the code defining the type of personal property owned. Each type of property is taxed at a unique rate. The codes, property taxes and tax rates are as follows:
| Code | Property Type | Tax Rate |
| 1 | Bike | 2 percent of value |
| 2 | Car | 4 percent of value |
| 3 | Truck | 5 percent of value |
Your program is to compute the tax for each property and to Output a line specifying the taxpayers name value of property and tax the program should output cones of the numbers of bikes cars and trucks for each taxes are computed with appropriate labels. Include a report heading and column headings as well as a page number on every page. Outputs and error message if the input contains an invalid code value. Assume a code of zero indicates the end of the input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
