All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
The subject of the first Fatwa is pertaining to winning prizes without contests. It is a gift from a given party (a third party) to a person, so it is permissible and it has nothing to do with gambling.
The second Fatwa is related to the subject of competitions in which there is compensation (prizes) by non-contestants. There is a difference of opinion about its permissibility in other than where there is an Islamic text that rules it permissible, which is in camel race, horse race, and throwing arrows.
We have mentioned the difference of opinion on its ruling and we favored the view that the competition on video games and the like is not permissible.
Therefore, the prizes that are given to the best engineering project without the entrepreneurs paying anything is permissible. However, the competitions in which the participants pay money are not permissible and are included in forbidden gambling.
Allah knows best.