Problem 3 Tax Relief (continued) For each taxpayer, output the Social Security Number (exactly as input), two spaces, a dollar sign ' $ ' and the check amount left justified with no leading zeros as dollars, a decimal point, and two digits of cents. Then for each week for which checks are to be distributed, output a summary line reporting the number of checks (no leading space), two spaces, a dryllar sign ' $ ' and the week's total distributed amount left justified with no excess leading zeros as dollars, a cecimal point, and two digits of cents, one space and the week exactly as listed in Table 3.2. List the weeks in the same order as Table 3.2. 123-45-0001,1,40100,8200 890-12-3456,4,98910,24182 123-45-0002,4,6000,904 Sample Input Sample Output 123-45-0001,$300.00 890-12-3456,$500.00 123-45-0002,$300.00 2,$600.00 July 23 1,$500.00 August 27
Problem 3 Tax Relief (continued) For each taxpayer, output the Social Security Number (exactly as input), two spaces, a dollar sign ' $ ' and the check amount left justified with no leading zeros as dollars, a decimal point, and two digits of cents. Then for each week for which checks are to be distributed, output a summary line reporting the number of checks (no leading space), two spaces, a dryllar sign ' $ ' and the week's total distributed amount left justified with no excess leading zeros as dollars, a cecimal point, and two digits of cents, one space and the week exactly as listed in Table 3.2. List the weeks in the same order as Table 3.2. 123-45-0001,1,40100,8200 890-12-3456,4,98910,24182 123-45-0002,4,6000,904 Sample Input Sample Output 123-45-0001,$300.00 890-12-3456,$500.00 123-45-0002,$300.00 2,$600.00 July 23 1,$500.00 August 27
Step by step
Solved in 2 steps