Answered step by step
Verified Expert Solution
Question
1 Approved Answer
If I have myprogram.cpp file how to do the following in Linux: (Explain every step) For this assignment you are to follow the procedure outlined
If I have myprogram.cpp file how to do the following in Linux: (Explain every step)
For this assignment you are to follow the procedure outlined below. Please r ead these instructions carefully 1. Create a directory named hw01 that contains all of the source code for your program and nothing else 2. Design, code, compile, and thoroughly test your program 3. Make sure that your program files each begin with a substantial comme nt section that includes: your name program name a brief description of the contents of the file .the date of your last modification to the file 4. Make sure that your program does not contain any lines that are longer than 79 characters 5. Prepare and submit a script file similar to the following: 6. script hw01script /open the script file 7. cat progifile1 //list the file(s) for your program 8. cat prog1file2.. .(etc.) /into the script. (see note below) 9. cat Makefile 10. make 11. /a.out 12. exit //If you wrote a makefile list it. // build your program // give a good demo of the program // close the script file [Note: In general, if you have pairs of files such as: thing.h and thing cpp ALWAYS list the .h file first and then the .cpp file.] 13. Prepare a gzipped tarball that contains all of your source code files and data files so that I can easily build and run your program. The comma nd to do this is: tar-czf yourname-hw1.tar.gz * This command will create a compressed archive containing all files in t he directory as well as any subdirectories, so make sure that you de lete all backup files and binary files that may have been produ ced while you were editing and debugging your program before creating this tarball. Make sure that your tarball contains your scrip t file 14. Finally: Mail your tarball, as an attachment to: gmail.com For this assignment you are to follow the procedure outlined below. Please r ead these instructions carefully 1. Create a directory named hw01 that contains all of the source code for your program and nothing else 2. Design, code, compile, and thoroughly test your program 3. Make sure that your program files each begin with a substantial comme nt section that includes: your name program name a brief description of the contents of the file .the date of your last modification to the file 4. Make sure that your program does not contain any lines that are longer than 79 characters 5. Prepare and submit a script file similar to the following: 6. script hw01script /open the script file 7. cat progifile1 //list the file(s) for your program 8. cat prog1file2.. .(etc.) /into the script. (see note below) 9. cat Makefile 10. make 11. /a.out 12. exit //If you wrote a makefile list it. // build your program // give a good demo of the program // close the script file [Note: In general, if you have pairs of files such as: thing.h and thing cpp ALWAYS list the .h file first and then the .cpp file.] 13. Prepare a gzipped tarball that contains all of your source code files and data files so that I can easily build and run your program. The comma nd to do this is: tar-czf yourname-hw1.tar.gz * This command will create a compressed archive containing all files in t he directory as well as any subdirectories, so make sure that you de lete all backup files and binary files that may have been produ ced while you were editing and debugging your program before creating this tarball. Make sure that your tarball contains your scrip t file 14. Finally: Mail your tarball, as an attachment to: gmail.comStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started