Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Asst 9: Compiling & Executing Programs This assignment deals with C++ compilation and basic scripting. 1 The Assignment 1. Create a directory / UnixCourse/compileAsst 2.
Asst 9: Compiling \& Executing Programs This assignment deals with C++ compilation and basic scripting. 1 The Assignment 1. Create a directory / UnixCourse/compileAsst 2. Copy the files from cs252 /Assignments/sqrt/ into your newly created directory. (Do not copy the sqrt directory itself.) 3. Compile the code, capturing the error messages by any of the techniques covered in this module's lesson. Fix any errors that you encounter. Continue compiling and fixing until you are able to produce an executable program named computesqrt. - Each error can be fixed by a change of no more than 2 characters on a a single line each. If you find yourself doing anything more complicated, stop! (You may well be giving incorrect compilation commands.) 4. This program computes square roots of positive numbers. It expects to receive a floating point number as a command line parameter when run, e.g., ./computesqrt 6.25 Test the program on a few numbers to be sure it works. 5. Write a shell script named sqrts.sh that will take a list of numbers as command line parameters and will run computesqrt on each of them in turn, however many there are. For example, the output of ./sqrts.sh 6.2525100 should be 2.5 5 10
Step 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