Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- {pioen- Objective Develop UNIX shell script. Description Write a shell script that accepts at most three arguments. The arguments are all integers: a b

image text in transcribed

- {pioen- Objective Develop UNIX shell script. Description Write a shell script that accepts at most three arguments. The arguments are all integers: a b and n. The script should print all terms of Fibonacci sequence to nth term. Fibonacci sequence work as follow: n=0 Fib(n) = n=1 (Fib(n-1) + Fib(n - 2) n2,3,4 The script should print "your ScriptName': accept three arguments only message if number of arguments is more than 3 then exit. If number of arguments is less than 3, the script should ask the user to input the other needed integers. Then, the script prints values of Fibonacci sequence from first to nth terms on terminal and ask user if he/she interests to try different value of n. The script will print the result and ask the user continuously until the user choose to exit, then the script will terminate. Sample Run (you can make different format of your output): Jfib.sh 1 26 123 5 8 13 Do you want to try another n (yeso): yes Insert 8 12 3 5 8 13 21 34 Do you want to try another n (yeso), no Thank you Required Files: 1 Script file with extension sh that contains your shell programming code. 2. PDF file that contains screen shots for sample run of your script. Submission: Put all needed files in one folder and compress it then upload the compressed file on the link of submission programming assignment 2 on Elearning Zero credit will be assigned for each program that has compile error or cheating case Partial credit will be given to programs that executed correctly but give different results than the required in description above. Notes: You should write your name and id in the top of each file as comments You should format your output to be clear and meaningful You should work individually Groups are NOT allowed . Runa urem

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Strategic Database Technology Management For The Year 2000

Authors: Alan Simon

1st Edition

155860264X, 978-1558602649

More Books

Students also viewed these Databases questions