Check My Circuit As Well As Programme

Is the circuit on

Correct to drive a car with 4*4 matrix keypad
And
Is this programme correct with this circuit for same purpose that is to drive car with matrix keypad:-

#include <avr/io.h>
void main(void)
        {
	unsigned int k, h;
	DDRA=0x00;
	DDRD=0XFF;	
  while (1)
      {
	k =~PINA;
	h=k & 0x0F;
      switch (h)
	{ 
	case 0x02:
	{
	PORTD=0x89;
	break;
	}
	case 0x08:	
	{
	PORTD=0x86;
	break;
	}
	case 0x04:	
	{
	PORTD=0x85;
	break;
	}
	case 0x06:	
	{
	PORTD=0x8A;
	break;
	}
	case 0x05:	
	{
	PORTD=0x00;
	break;
	}
	}
	}
	}

Well its not your circuit is it?

Why did you not read the how to use this forum sticky post it tells you how to post code.

Is this programme correct with this circuit for same purpose that is to drive car with matrix keypad:-

No not even close. It is not arduino code for a start.