U really don't want to believe what i say to you

ahsan19 wrote: some method to choose the value of capacitor and resistor
Yes there is a method: Learn electronics!
I am serious, there is no simple method to calculate capacitor and resistors.. it depends on each and every circuit.. it is analog.. is it digital..2687
You have to start from the beginning, learn about volt and current, use a resistor as a
current limiter, and then you will see how a resistor value affect the current.. then use 2 resistors of the same value in series to create a
voltage divider, and you will see how resistor values can be used to divide voltage..
You asking about a method to chose resistors values, is like someone asking you "how do you know which letters to write in a sentence2687" What would be your answer to that2687 you would say "you have to learn to read and write" and that's exactly what i am trying to tell you!
don't even think that "knowing the capacitor and resistor values" in an easy thing, in fact, many engineers i have come to know still don't know quite well how to carefully choose the values of their components.. it is not and easy skill to learn. it will take time and practice and
patience.
Start by looking and simple circuits online.. there are PLENTY of them. then "practice".
I don't know why i spent so much time explaining again what i said in the first place, but trust me this is the best answer you can get in a forum for your question!
Google is your friend, and all the tones of tutorials out there. you can start by this one:
http://www.ikalogic.com/beg_1_res_v_c.php