Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Lab Writeup NOTE: If you type the command in step 8 incorrectly, e.g tar -cvzf *

ID: 3585546 • Letter: L

Question

Lab Writeup NOTE: If you type the command in step 8 incorrectly, e.g tar -cvzf *. lab1-14.tar.gz' you will corrupt the first file in your directory. You will then need to recopy that file (step 2), remove the tarfile and start over again 1. Create a subdirectory in your cs2650 directory for this lab 2. Change into your lab directory 3. Copy all files from Sample Makefile and code into your lab directory using 'cp -a /home/fac/steve/pub/makel. 4. Modify the Makefile so that it will compile and link the two .cpp programs into an executable called 'main' 5. Run 'make' to confirm that the Makefile works 6. Run the executable (type main) to confirm that it was made 7. Remove any object files by either adding a 'make clean' directive to your Makefile and running 'make clean' or by running 'rm *.o 8. Change to the parent directory and create a tarball with the command 'tar -cvzf lab1-14.tar.gz lab1-14', which will put all the files in the current directory into a tarball called lab1-14.tar.gz 9. Confirm that the tarball was made using the following commands 1. 'mkdir temp' to make a temporary directory for confirming the tarball was made correctly 2. 'cp lab1-14.tar.gz temp 3. cd temp 4. 'tar -xvzf lab1-14.tar.gz' will extract the files into the current directory, which should be temp as long as you followed step 3 5· 'ls' to show the extracted files 6. 'make' to confirm that the Makefile still works 7. main' to confirm that the new executable works 10. Send the lab1-14.tar.gz file to me as an attachment

Explanation / Answer

Dear Student,

As this question requires some files from your machine, I request you to execute these command one by one on your machine and your assignment would be complete, in the end, you will have to email lab1-14.tar.gz file to your instructor.

1. Go to cs2650 directory by typing cd cs2650
2. mkdir lab1-14
3. cd lab1-14
4. cp -a /home/fac/steve/pub/make/ .
5. Now if possible share your make file with me so i can help you further on this.
6. make
7. ./make
8. make clean
9. cd ..
10. tar -cvzf lab1-14.tar.gz lab1-14
11. mkdir temp
12. cp lab1-14.tar.gz temp/
13. cd temp
14. tar -xvzf lab1-14.tar.gz
15. ls
16. make
17. ./make
18 Email lab1-14.tar.gz to your instructor

Hope i have helped you, I would again request you to share Make file with me so i can help you at that point as well.