Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JAVA PROGRAM Linstead County uses a very simple method of generating taxes from

ID: 3918740 • Letter: J

Question


JAVA PROGRAM Linstead County uses a very simple method of generating taxes from its citizens. Anyone who earns over $5,000.00 per according to the following schedule: year, pays taxes County tax 7% of gross School tax of 2%% of the gross Municipal taxes 3% of the gross . * that there is a method called calculate Tax, shown by the method header. Use this header and complete the method for finding the taxes for those who are qualified by the schedule above. (You may assume the following variables-county tax, school,tax, municipal, tarx already exists) void calculate Tax(double amount)

Explanation / Answer

double county_tax, school_tax, municipal_tax; void calculateTax(double amount) { if(amount > 5000) { county_tax = 0.07 * amount; school_tax = 0.025 * amount; municipal_tax = 0.03 * amount; } }