Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered 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