Cory issued a note to his creditor in exchange for an account. cory records the transaction by debiting

Anotes payable and crediting accounts payable.
Bnotes receivable and crediting accounts receivable.
Caccounts payable and crediting notes payable.
Daccounts receivable and crediting notes payable