Homework 03

Task Organizer!

Due 10/04/2024 by 11:55PM

Due 11/01/2024 by 11:55PM

 

 

Objective: 

Write a program in which the user can manage a collection of tasks. Each task has an associated action a priority. The tasks must be organized into a collection of different lists based on their priority value, where the highest priority is 0 and the lowest is 4.

 

Requirements:

 

GenLL<Task>[] organizedTasks;

 

 

organizedTasks = new GenLL[5];

 

 

for(int i=0;i<organizedTasks.length;i++)

{

            organizedTasks[i] = new GenLL<Task>();

}

 

<<Priority 0>>\t<<Action 0>>\n

<<Priority 1>>\t<<Action 1>>\n

 

Example Dialog:

*The following Example Dialog demonstrates the interactions between a user and ONE possible implementation of the required software’s front-end / user interface. The software’s front-end / user interface may be implemented in MANY different ways and will receive full credit as long as it meets the most minimal of the above requirements. While you may use the example dialog as a guide, it is strongly encouraged to create the front-end / user interface in your own way. *

Key

Unhighlighted Text

Program’s Output

Highlighted Text

User’s Input

 

 

Welcome to the Task Organizer!

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

4

Enter the file name

TasksFile.txt

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

3

[Task] Priority: 0 Task: Action 03

[Task] Priority: 0 Task: Action 05

[Task] Priority: 0 Task: Action 11

[Task] Priority: 0 Task: Action 20

[Task] Priority: 0 Task: Action 32

[Task] Priority: 0 Task: Action 36

[Task] Priority: 0 Task: Action 37

[Task] Priority: 0 Task: Action 41

[Task] Priority: 0 Task: Action 57

[Task] Priority: 0 Task: Action 67

[Task] Priority: 0 Task: Action 68

[Task] Priority: 0 Task: Action 69

[Task] Priority: 0 Task: Action 80

[Task] Priority: 0 Task: Action 82

[Task] Priority: 1 Task: Action 01

[Task] Priority: 1 Task: Action 04

[Task] Priority: 1 Task: Action 10

[Task] Priority: 1 Task: Action 17

[Task] Priority: 1 Task: Action 18

[Task] Priority: 1 Task: Action 23

[Task] Priority: 1 Task: Action 28

[Task] Priority: 1 Task: Action 33

[Task] Priority: 1 Task: Action 35

[Task] Priority: 1 Task: Action 43

[Task] Priority: 1 Task: Action 47

[Task] Priority: 1 Task: Action 51

[Task] Priority: 1 Task: Action 54

[Task] Priority: 1 Task: Action 58

[Task] Priority: 1 Task: Action 63

[Task] Priority: 1 Task: Action 74

[Task] Priority: 1 Task: Action 87

[Task] Priority: 1 Task: Action 91

[Task] Priority: 1 Task: Action 92

[Task] Priority: 1 Task: Action 94

[Task] Priority: 1 Task: Action 98

[Task] Priority: 1 Task: Action 99

[Task] Priority: 2 Task: Action 02

[Task] Priority: 2 Task: Action 06

[Task] Priority: 2 Task: Action 09

[Task] Priority: 2 Task: Action 13

[Task] Priority: 2 Task: Action 22

[Task] Priority: 2 Task: Action 24

[Task] Priority: 2 Task: Action 25

[Task] Priority: 2 Task: Action 26

[Task] Priority: 2 Task: Action 40

[Task] Priority: 2 Task: Action 42

[Task] Priority: 2 Task: Action 45

[Task] Priority: 2 Task: Action 49

[Task] Priority: 2 Task: Action 52

[Task] Priority: 2 Task: Action 53

[Task] Priority: 2 Task: Action 56

[Task] Priority: 2 Task: Action 59

[Task] Priority: 2 Task: Action 64

[Task] Priority: 2 Task: Action 66

[Task] Priority: 2 Task: Action 70

[Task] Priority: 2 Task: Action 77

[Task] Priority: 2 Task: Action 79

[Task] Priority: 2 Task: Action 83

[Task] Priority: 2 Task: Action 89

[Task] Priority: 2 Task: Action 96

[Task] Priority: 2 Task: Action 97

[Task] Priority: 3 Task: Action 07

[Task] Priority: 3 Task: Action 08

[Task] Priority: 3 Task: Action 12

[Task] Priority: 3 Task: Action 14

[Task] Priority: 3 Task: Action 21

[Task] Priority: 3 Task: Action 27

[Task] Priority: 3 Task: Action 29

[Task] Priority: 3 Task: Action 30

[Task] Priority: 3 Task: Action 31

[Task] Priority: 3 Task: Action 34

[Task] Priority: 3 Task: Action 44

[Task] Priority: 3 Task: Action 50

[Task] Priority: 3 Task: Action 55

[Task] Priority: 3 Task: Action 60

[Task] Priority: 3 Task: Action 61

[Task] Priority: 3 Task: Action 72

[Task] Priority: 3 Task: Action 73

[Task] Priority: 3 Task: Action 81

[Task] Priority: 3 Task: Action 95

[Task] Priority: 4 Task: Action 00

[Task] Priority: 4 Task: Action 15

[Task] Priority: 4 Task: Action 16

[Task] Priority: 4 Task: Action 19

[Task] Priority: 4 Task: Action 38

[Task] Priority: 4 Task: Action 39

[Task] Priority: 4 Task: Action 46

[Task] Priority: 4 Task: Action 48

[Task] Priority: 4 Task: Action 62

[Task] Priority: 4 Task: Action 65

[Task] Priority: 4 Task: Action 71

[Task] Priority: 4 Task: Action 75

[Task] Priority: 4 Task: Action 76

[Task] Priority: 4 Task: Action 78

[Task] Priority: 4 Task: Action 84

[Task] Priority: 4 Task: Action 85

[Task] Priority: 4 Task: Action 86

[Task] Priority: 4 Task: Action 88

[Task] Priority: 4 Task: Action 90

[Task] Priority: 4 Task: Action 93

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

2

Enter the task's priority

0

Enter the task's action

Action 03

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

3

[Task] Priority: 0 Task: Action 05

[Task] Priority: 0 Task: Action 11

[Task] Priority: 0 Task: Action 20

[Task] Priority: 0 Task: Action 32

[Task] Priority: 0 Task: Action 36

[Task] Priority: 0 Task: Action 37

[Task] Priority: 0 Task: Action 41

[Task] Priority: 0 Task: Action 57

[Task] Priority: 0 Task: Action 67

[Task] Priority: 0 Task: Action 68

[Task] Priority: 0 Task: Action 69

[Task] Priority: 0 Task: Action 80

[Task] Priority: 0 Task: Action 82

[Task] Priority: 1 Task: Action 01

[Task] Priority: 1 Task: Action 04

[Task] Priority: 1 Task: Action 10

[Task] Priority: 1 Task: Action 17

[Task] Priority: 1 Task: Action 18

[Task] Priority: 1 Task: Action 23

[Task] Priority: 1 Task: Action 28

[Task] Priority: 1 Task: Action 33

[Task] Priority: 1 Task: Action 35

[Task] Priority: 1 Task: Action 43

[Task] Priority: 1 Task: Action 47

[Task] Priority: 1 Task: Action 51

[Task] Priority: 1 Task: Action 54

[Task] Priority: 1 Task: Action 58

[Task] Priority: 1 Task: Action 63

[Task] Priority: 1 Task: Action 74

[Task] Priority: 1 Task: Action 87

[Task] Priority: 1 Task: Action 91

[Task] Priority: 1 Task: Action 92

[Task] Priority: 1 Task: Action 94

[Task] Priority: 1 Task: Action 98

[Task] Priority: 1 Task: Action 99

[Task] Priority: 2 Task: Action 02

[Task] Priority: 2 Task: Action 06

[Task] Priority: 2 Task: Action 09

[Task] Priority: 2 Task: Action 13

[Task] Priority: 2 Task: Action 22

[Task] Priority: 2 Task: Action 24

[Task] Priority: 2 Task: Action 25

[Task] Priority: 2 Task: Action 26

[Task] Priority: 2 Task: Action 40

[Task] Priority: 2 Task: Action 42

[Task] Priority: 2 Task: Action 45

[Task] Priority: 2 Task: Action 49

[Task] Priority: 2 Task: Action 52

[Task] Priority: 2 Task: Action 53

[Task] Priority: 2 Task: Action 56

[Task] Priority: 2 Task: Action 59

[Task] Priority: 2 Task: Action 64

[Task] Priority: 2 Task: Action 66

[Task] Priority: 2 Task: Action 70

[Task] Priority: 2 Task: Action 77

[Task] Priority: 2 Task: Action 79

[Task] Priority: 2 Task: Action 83

[Task] Priority: 2 Task: Action 89

[Task] Priority: 2 Task: Action 96

[Task] Priority: 2 Task: Action 97

[Task] Priority: 3 Task: Action 07

[Task] Priority: 3 Task: Action 08

[Task] Priority: 3 Task: Action 12

[Task] Priority: 3 Task: Action 14

[Task] Priority: 3 Task: Action 21

[Task] Priority: 3 Task: Action 27

[Task] Priority: 3 Task: Action 29

[Task] Priority: 3 Task: Action 30

[Task] Priority: 3 Task: Action 31

[Task] Priority: 3 Task: Action 34

[Task] Priority: 3 Task: Action 44

[Task] Priority: 3 Task: Action 50

[Task] Priority: 3 Task: Action 55

[Task] Priority: 3 Task: Action 60

[Task] Priority: 3 Task: Action 61

[Task] Priority: 3 Task: Action 72

[Task] Priority: 3 Task: Action 73

[Task] Priority: 3 Task: Action 81

[Task] Priority: 3 Task: Action 95

[Task] Priority: 4 Task: Action 00

[Task] Priority: 4 Task: Action 15

[Task] Priority: 4 Task: Action 16

[Task] Priority: 4 Task: Action 19

[Task] Priority: 4 Task: Action 38

[Task] Priority: 4 Task: Action 39

[Task] Priority: 4 Task: Action 46

[Task] Priority: 4 Task: Action 48

[Task] Priority: 4 Task: Action 62

[Task] Priority: 4 Task: Action 65

[Task] Priority: 4 Task: Action 71

[Task] Priority: 4 Task: Action 75

[Task] Priority: 4 Task: Action 76

[Task] Priority: 4 Task: Action 78

[Task] Priority: 4 Task: Action 84

[Task] Priority: 4 Task: Action 85

[Task] Priority: 4 Task: Action 86

[Task] Priority: 4 Task: Action 88

[Task] Priority: 4 Task: Action 90

[Task] Priority: 4 Task: Action 93

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

1

Enter the task's priority

2

Enter the task's action

Plan to Add More Actions

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

3

[Task] Priority: 0 Task: Action 05

[Task] Priority: 0 Task: Action 11

[Task] Priority: 0 Task: Action 20

[Task] Priority: 0 Task: Action 32

[Task] Priority: 0 Task: Action 36

[Task] Priority: 0 Task: Action 37

[Task] Priority: 0 Task: Action 41

[Task] Priority: 0 Task: Action 57

[Task] Priority: 0 Task: Action 67

[Task] Priority: 0 Task: Action 68

[Task] Priority: 0 Task: Action 69

[Task] Priority: 0 Task: Action 80

[Task] Priority: 0 Task: Action 82

[Task] Priority: 1 Task: Action 01

[Task] Priority: 1 Task: Action 04

[Task] Priority: 1 Task: Action 10

[Task] Priority: 1 Task: Action 17

[Task] Priority: 1 Task: Action 18

[Task] Priority: 1 Task: Action 23

[Task] Priority: 1 Task: Action 28

[Task] Priority: 1 Task: Action 33

[Task] Priority: 1 Task: Action 35

[Task] Priority: 1 Task: Action 43

[Task] Priority: 1 Task: Action 47

[Task] Priority: 1 Task: Action 51

[Task] Priority: 1 Task: Action 54

[Task] Priority: 1 Task: Action 58

[Task] Priority: 1 Task: Action 63

[Task] Priority: 1 Task: Action 74

[Task] Priority: 1 Task: Action 87

[Task] Priority: 1 Task: Action 91

[Task] Priority: 1 Task: Action 92

[Task] Priority: 1 Task: Action 94

[Task] Priority: 1 Task: Action 98

[Task] Priority: 1 Task: Action 99

[Task] Priority: 2 Task: Action 02

[Task] Priority: 2 Task: Action 06

[Task] Priority: 2 Task: Action 09

[Task] Priority: 2 Task: Action 13

[Task] Priority: 2 Task: Action 22

[Task] Priority: 2 Task: Action 24

[Task] Priority: 2 Task: Action 25

[Task] Priority: 2 Task: Action 26

[Task] Priority: 2 Task: Action 40

[Task] Priority: 2 Task: Action 42

[Task] Priority: 2 Task: Action 45

[Task] Priority: 2 Task: Action 49

[Task] Priority: 2 Task: Action 52

[Task] Priority: 2 Task: Action 53

[Task] Priority: 2 Task: Action 56

[Task] Priority: 2 Task: Action 59

[Task] Priority: 2 Task: Action 64

[Task] Priority: 2 Task: Action 66

[Task] Priority: 2 Task: Action 70

[Task] Priority: 2 Task: Action 77

[Task] Priority: 2 Task: Action 79

[Task] Priority: 2 Task: Action 83

[Task] Priority: 2 Task: Action 89

[Task] Priority: 2 Task: Action 96

[Task] Priority: 2 Task: Action 97

[Task] Priority: 2 Task: Plan to Add More Actions

[Task] Priority: 3 Task: Action 07

[Task] Priority: 3 Task: Action 08

[Task] Priority: 3 Task: Action 12

[Task] Priority: 3 Task: Action 14

[Task] Priority: 3 Task: Action 21

[Task] Priority: 3 Task: Action 27

[Task] Priority: 3 Task: Action 29

[Task] Priority: 3 Task: Action 30

[Task] Priority: 3 Task: Action 31

[Task] Priority: 3 Task: Action 34

[Task] Priority: 3 Task: Action 44

[Task] Priority: 3 Task: Action 50

[Task] Priority: 3 Task: Action 55

[Task] Priority: 3 Task: Action 60

[Task] Priority: 3 Task: Action 61

[Task] Priority: 3 Task: Action 72

[Task] Priority: 3 Task: Action 73

[Task] Priority: 3 Task: Action 81

[Task] Priority: 3 Task: Action 95

[Task] Priority: 4 Task: Action 00

[Task] Priority: 4 Task: Action 15

[Task] Priority: 4 Task: Action 16

[Task] Priority: 4 Task: Action 19

[Task] Priority: 4 Task: Action 38

[Task] Priority: 4 Task: Action 39

[Task] Priority: 4 Task: Action 46

[Task] Priority: 4 Task: Action 48

[Task] Priority: 4 Task: Action 62

[Task] Priority: 4 Task: Action 65

[Task] Priority: 4 Task: Action 71

[Task] Priority: 4 Task: Action 75

[Task] Priority: 4 Task: Action 76

[Task] Priority: 4 Task: Action 78

[Task] Priority: 4 Task: Action 84

[Task] Priority: 4 Task: Action 85

[Task] Priority: 4 Task: Action 86

[Task] Priority: 4 Task: Action 88

[Task] Priority: 4 Task: Action 90

[Task] Priority: 4 Task: Action 93

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

5

Enter the file name

NewTasks.txt

 

Enter 1. To Add a Task

Enter 2. To Remove a Task

Enter 3. To Print Tasks To Console

Enter 4. To Read from a Task File

Enter 5. To Write to a Task File

Enter 9. To Quit

9

Goodbye!

Finally:

Submit the source files (.JAVA extension) to the CSCE Dropbox (https://dropbox.cse.sc.edu)