7.2.2   Develop a Method for Data Checking Prior to Data Insertion Create a new method…