The type of motivation present in this scenario is d. Intrinsic to extrinsic.
Initially, the motivation may be intrinsic as John recognizes the need to work harder on his project. However, the external factor introduced by his teacher, which is the opportunity for a scholarship based on achieving a good grade, makes this motivation extrinsic.
Therefore, the best answer from the choices provided is d. Intrinsic to extrinsic.