Question: QUESTION 18 Write code inside main function. No need to write the header of main function or include libraries. (1) Declare numbers a, b, and
QUESTION 18
-
Write code inside main function. No need to write the header of main function or include libraries.
(1) Declare numbers a, b, and c as double type. Enter values for a, b, and c.
Suppose the tax rate for income is set as follows. income tax rate 0 <= income <= 30000. 5% income > 30000 but <= 75000. 10% income > 75000 but <= 150000. 15% income > 150000. 20% Write the code inside main function (no need to write main function header or include library). (1) enter income from console (2) Calculate tax. (3) print tax.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
