Write a function that receives marks received by a student in 3 subjects and returns the average and percentage of…