Click here to Skip to main content
16,007,932 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm developing Exam Scheduler Web Application in php-mysql. 
first point is done but 2nd and 3rd points i can`t understand (how can write the code) plz help me solve in this last 2 points... 

I follow these steps:

1. Manage courses and enrollment in them Create a page that:

1.1. Takes as input a new course code (e.g. CS101) and enrollment in that course in the form of a text file (e.g. CS101.txt). The text file contains a list of students enrolled in that course. For example:
CS101.txt

BC160300123

BC160300234

BC170100345

BC170100456

………….

 1.2.   Updates enrollment in an existing course by giving as input a new file having list of students enrolled in that course.

 1.3.   Delete a course and the corresponding enrollment in it.

2. Calculate list of "Non-overlapping courses" for each course
In the context of this application, a course A is non-overlapping to a course B if there is no student who is enrolled in both the courses A and B. You are required to determine list of all non-overlapping courses for each course. The output can be of the following form:


Course CS101 CS201 ENG101 CS502

List of Non-overlapping Courses CS301, CS304, CS504, CS403, CS601, CS606 CS301, CS304, CS504 ENG201, CS302, CS401 CS602

….. …….

3. Calculate a possible "correct" schedule with minimum number of days
Given ‘n’ number of slots per day, calculate a possible schedule with minimum number of days. Regarding correctness: A schedule will be correct if all the courses whose exams are scheduled on same day are non-overlapping with each other.


What I have tried:

i`m tried 2nd an 3rd points, first point is done but 2nd and 3rd points i can`t understand (how can write the code) plz help in these last 2 points...
Posted
Updated 6-May-18 17:02pm

1 solution

This seems like a homework and the rule is simple: We don't do homework.

Go through the material you have, split the problem into small pieces and if needed, talk with your instructor to get help with the assignment. This way you both get a clear picture what skills need to be enhanced and you get good advice for the task at hand. After all, the point is that you learn, not us, so it's all about investing to yourself.

If you have specific questions about a single code block, you can post the question along with all the code you have already made and people will try to help to solve the individual problem as long as you can show that you have put effort into it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900