Consult with your instructor about the option of an incomplete.
May be eligible if you have been in attendance and doing passing work up to three weeks before the end of the semester.
May be eligible if, for reasons beyond your control (and are acceptable to the instructor), you have been unable to complete the requirements of the course on time. Negligence and indifference are not acceptable reasons.
The instructor will set the conditions for the completion of your course work.
In most cases you have one calendar year (or otherwise established by your instructor) to complete the requirements or an alternate grade (assigned by the instructor) will be assigned.