import java.util.Scanner; public class Solution { public static void main(String[] args) { double[] rates = {0.10, 0.15, 0.25, 0.28, 0.33, 0.35}; int[][] brackets = { {8350, 33950, 82250, 171550, 372950}, {16700, 67900, 137050, 208850, 372950}, {8350…