write c++ programming that calculate electricity bill with persons name and id

You accually have to try to do it yourself... if you have an issue or you dont understand somthing... than you post...

You cant seriously expect these awsome people here to just program things for you, thier here to help and give guidence.... not do you homework...

write program to print the kth digit from last e.g input 23617 and k=4 output 3 in c++

It's incomprehensible how you could read the previous posts then add yours on the end.
Read them now.
Then read the thread that the previous post links to.