A university is writing a program to calculate a student's total mark for three essays. If any essays are handed in late, the total mark is reduced. Assume there are three integer variables called e1, e2 and e3 which have already been given values to represent the marks of the three essays.
Write a C# program to calculate the total mark. The program should: get the user to enter the number of essays handed in late and store it; calculate the total of e1, e2 and e3; reduce the total by 10 if only one essay is late; halve the total if more than one essay is late; ensure the total is not less than 0; and output the total mark. Use meaningful variable name(s) and C# syntax.
Your answer