A simplified flow chart from the USPTO on the process of obtaining a utility patent. It should be noted that this is just a general overview and many options

and alternatives are available during this process.