Detailed requirement for thesis and dissertations for mechanical engineering can be found in the department style guides at:
Mechanical engineers traditionally writing styles that are used in the publications of either the American Society of Mechanical Engineers (ASME) or American Society of Heating, Refrigeration and Air-Conditioning Engineers (ASHRAE).
Detailed information on the ASHRAE style can be found in their Interactive Authors' Manual. This tool can be found on the ASHRAE publication and resources page.
In text citations are done differently by the different styles.
ASME uses numbers in square brackets  for in-text citations. References should be listed in numberical order according to their order of appearance.
ASHRAE uses author-date in-text citations with a reference list, e.g. (Ruston 2003). The reference list is presented alphabetically by author.
Most databases provided by the libraries have a "Cite" feature built in. Look for a link or button for citing. If the link is available, you will see a screen which provides a citation in your preferred format that you can cut and paste into your bibliography.
Many electronic resources offer citation creators and there are some that are freely available on the web. Feel free to use the links below at your convenience.
However, make sure you carefully edit the results before you paste them into your bibliography, citation creators are not always perfect. Automatic citation generation is only as good as the details made available from the database.
"Common knowledge" -- you don't need to cite where you found "common knowledge". But what is "common knowledge"? Guess what -- it varies. Here is a safe definition, because you don't want to be accused of plagiarism.
Did you know it without looking it up? If you are just learning about your field, you should err on the side of caution. Better to cite something that didn't need a citation, then to be accused of plagiarism.
Would other people in the class know this? Common knowledge is based, to some extent, on what the "general practitioner" in the field would know. And what would be general knowledge for a practicing electrical engineer MAY NOT be common knowledge for a freshman engineering student.
Do you find the information in many PUBLISHED (not web pages) resources? Some experts say if you find it in 3 reference tools, no need to cite. Others say 5. If you don't have time to check that the information has been used in many different places, cite it. Play it safe. The citation can be easily removed later and until the paper is in it's final version, you will know where to go back and verify the information.