且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我试过第二个第三点......不能解决PLZ帮助我

更新时间:2023-12-04 16:21:52

这似乎是一个功课,规则很简单:我们不做作业。



浏览你的材料,将问题分成小块,如果需要,请与您的导师联系,以获得有关作业的帮助。通过这种方式,您可以清楚地了解需要增强的技能,并为您手头的任务提供良好的建议。毕竟,重点在于你学习,而不是我们,所以这一切都是为了给自己投资。



如果你对单个代码块有特定的问题,你可以将问题与您已经制作的所有代码一起发布,只要您能证明您已经付出了努力,人们就会尝试帮助解决个别问题。


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...

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.