True. Most basic programs follow this structure.
Answer:
Please find the program in attachment.
The sample program is self explanatory, and with all the functions being listed as shown above.
And the sample program can be extended to allow three chances for authentication, and for all with addition of a simple for loop.
Explanation:
The code is self explanatory.
What you want to do is create a shallow depth of field, this is to make your background blur and focus more on the subject. Set a large aperture, which is a low f-number, around f/1.8 or f/2 and then take a few test shots to see if this is what you would like. If you want everything to be focused in frame just do the opposite.