Code:
#include <stdio.h>
#define ACCOUNT_MIN 1000
#define ACCOUNT_MAX 3999

main ()
{
   int account_number, choice;
   char trans_type;
   double trans_amount;
   double debits[20], credits[20]
   while (choice != 4)
   {
      printf("1. Enter a Transaction "); 
      printf("2. View the General Journal ");
      printf("3. View the Balance Sheet ");
      printf("4. Quit the Program ");
      scanf("%d", &choice);
      if (choice == 1)
      {
         printf("Enter an account number (between 1000 and 3999) :");
         scanf("%lf", &account_number);
         while (account_number < ACCOUNT_MIN || account_number > ACCOUNT_MAX)
            {
            printf("Invalid Entry");
            printf("Enter an account number (between 1000 and 3999) :"); 
            scanf("%lf", &account_number);
            }
         printf("Enter the transaction type (d) for debit and (c) for credit: ");
         scanf("%c", &trans_type);
         while (trans_type != 'c' || trans_type != 'd')
         {
            printf("Invalid Entry");
            printf("Enter the transaction type (d) for debit and (c) for credit: ");
            scanf("%c", &trans_type);
         }
         printf("Enter the amount of the transaction (must be positive: ");
         scanf("%lf", &trans_amount);
         while (trans_amount < 0)
         {
            printf("Invalid Entry");
            printf("Enter the amount of the transaction (must be positive): ");
            scanf("%lf", &trans_amount);
         }   
}  
      /*if (choice == 2)
      {
        
      }     
      if (choice == 3)
            
   printf("Ended Program... HAVE A GOOD DAY!!!"); */
}