subject

Definitions and specifications: a task (e. g, abc can be completed only if it has no dependencies or all its dependencies are met. a dependency: (a, b) indicates that a has to be completed before b. a task list is a list of all tasks to be completed. a dependency list is a list of all dependencies for all task.

the task list and dependency list will be read from a text file. a time step is the event when all task that can be completed is completed.
the task list and the dependency list can be modified according to user input. when a task is deleted, all dependencies for the deleted task are also deleted. the task list and dependency list are read into your project from a single text file ("taskdata. txt"). the first line in the text file gives the task list. tasks are separated by a space. the second line in the text file gives the dependency list. the dependencies are separated by a space.

tastdata. txt example:

abcdef (a, b) (a, c) (bd) (cd) (de) (e, f)

given the data in the taskdata. txt and any changes provided through user input, provide the following information:
1) a valid ordering of task if one exist.
2) if no valid ordering is possible, identify a cycle that prevents a valid ordering.
3) if a valid ordering exist, indicate whether or not the there is more than one.
4) report the minimum number of time steps needed to complete all tasks.
5) for each time step, list all remaining tasks that can be completed during that time step.

this project should also provide the option to (1) add new tasks, (2) delete a task. (3) add a dependency, and (4) quit. when the task list or the dependency list is modified, the program will recalculate the information above and display the updated information.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 22.06.2019 15:50, minideeri
The file sales data. xlsx contains monthly sales amounts for 40 sales regions. write a sub that uses a for loop to color the interior of every other row (rows 3, 5, etc.) gray. color only the data area, columns a to m. (check the file colors in excel. xlsm to find a nice color of gray.)
Answers: 2
image
Computers and Technology, 23.06.2019 05:00, mariahchaparro08
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
image
Computers and Technology, 23.06.2019 21:00, tiffg2588
Will this setup result in what kathy wants to print?
Answers: 2
You know the right answer?
Definitions and specifications: a task (e. g, abc can be completed only if it has no dependencies...

Questions in other subjects:

Konu
Mathematics, 07.02.2022 19:00