The controllers installed on the board of vehicles need software to fulfil the functionalities for that they have been designed. The controller has embedded software to decrease the complexity of the software installed and to eliminate the logic implemented with hardware (to reduce the hardware complexity).
Behind the programs and the programming language is the logic or the algorithms needed to implement the logic.