
Write a class whose objects will represent students.The class should have three fields for representing a student�s name, this student�s coursework mark (out of 100)and this student�s exam mark (out of 100). The marks will be a positive integer and should initially be set to zero.The constructor should have one parameter, a student name. There should be an accessor method for returning the student name.
There should be two mutator methods:
one for setting the coursework mark and one for setting the exam mark.There should also be a method that returns ââ?¬Å?passââ?¬Â? or ââ?¬Å?failââ?¬Â? depending on whether or not the combined coursework and exam marks (add them up and divide by two) are greater than or equal to 40.
Instructions
Do each of the following tasks in turn ââ?¬â?? the result should be a functioning
program that will earn you full marks. Remember to keep back ups of your
program in case you change your mind about something and want to go back to
an earlier version. Always make sure that your work compiles. If it doesn�t
compile then you won�t earn any marks.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.