Answer and Explanation:
The Journal entry is shown below:-
Bad debts expense Dr, $18,000 ($900,000 × 2%)
To Allowance for doubtful accounts $18,000
(Being bad debt expense for the year is recorded)
Here we debited the bad debt expenses as it increased the expenses and we credited the allowance for doubtful accounts as it decrease the value of the assets