Consider the following scenario:You are tasked with building an application that deals with cars. You are…