Answer:
The journal entries are given;
Explanation:
a. Bad Debt Expense  Dr.$17,300
  Allowance for Doubtful Accounts Cr.$17,300
b. Allowance for Doubtful Accounts Dr.$7,100
  Accounts Receivable            Cr.$7,100
With Bad Debt Expense ,the retained earnings will be decreased by ($17,300)
with direct written off,the accounts receivables will be reduced by ($7,100) in balance sheet.