Suppose that you want to write a Makefile for P101 with a fl…
Suppose that you want to write a Makefile for P101 with a flattened directory structure. The files are listed below: cs400├── P101│ ├── BinaryNode.java│ ├── BinarySearchTree.java│ ├── Makefile│ ├── RedBlackNode.java│ ├── RedBlackTree.java│ ├── SortedCollection.java│ ├── P101SubmissionChecker.java│ └── TreeTests.java└── junit5.jar Complete the blanks in the partial Makefile below. JUNIT=[junit].PHONY : [phony]all: SortedCollection.class BinaryNode.class BinarySearchTree.class RedBlackNode.class RedBlackTree.classSortedCollection.class: SortedCollection.java javac SortedCollection.javaBinaryNode.class: BinaryNode.java javac BinaryNode.javaBinarySearchTree.class: BinarySearchTree.java SortedCollection.class javac -cp . BinarySearchTree.javaRedBlackNode.class: BinaryNode.class RedBlackNode.java javac -cp . RedBlackNode.javaRedBlackTree.class: [deps] javac -cp . RedBlackTree.javaTreeTests.class: RedBlackTree.class BinarySearchTree.class javac -cp $(JUNIT):. TreeTests.javaP101SubmissionChecker.class: P101SubmissionChecker.java RedBlackTree.class javac -cp $(JUNIT):. P101SubmissionChecker.javatest: TreeTests.class [test]clean: rm -f *.class
Read DetailsSuppose the git graph of a local repository looks like this:…
Suppose the git graph of a local repository looks like this: Put the following commands in the order that we could run them in an initially empty directory to generate the output above. The semicolons between commands demark different commands which run one after another from left to right. This is real bash syntax.
Read DetailsWe run the command “make titanium” from a directory that con…
We run the command “make titanium” from a directory that contains the following Makefile. In addition to the Makefile, which files must exist in the directory for the command to terminate without any errors? titanium: copper aluminum echo “titanium”copper: nickel echo “copper”aluminum: lead echo “aluminum”
Read DetailsFor reference, the red-black tree deletion handout is availa…
For reference, the red-black tree deletion handout is available below. Trace through the removal of H from the following red-black tree. Then, answer the following questions about this trace. Does the repair operation reduce the height of the tree? [Yes / No] [height] How many red nodes does the resulting tree contain? [rednodes] What is the parent of M in the resulting tree? [parent] What value does the root node of the resulting tree contain? [root]
Read Details