Question: 6. (12 points =3+3+3+3) Here is an exercise resembling thoso from your lab. Answer the following questions about it: #!/bin/shdeclareixbasxxsontoptop0xbas51xson-52x=5xbaswhileI5x-leSxsonIdotop=5top+$x+5xx=5x+1doneechotoplam=Stop a. How many command line
6. (12 points =3+3+3+3) Here is an exercise resembling thoso from your lab. Answer the following questions about it: #!/bin/shdeclareixbasxxsontoptop0xbas51xson-52x=5xbaswhileI5x-leSxsonIdotop=5top+$x+5xx=5x+1doneecho"toplam="Stop a. How many command line argumeats do you need and what are they? b. What does the program do? c. It would be logically preferable to enclose the while loop into another loop that checks that xson is greater than or equal to xbas. What loop should it be? d. Modify the program so that the checking in part d is incorporated. Write the statements in proper position in the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
