Question: IN PYTHON: You will be writing a shell application, it will be on a loop, taking in commands from the user. The command syntax is

 IN PYTHON: You will be writing a "shell" application, it will

IN PYTHON: You will be writing a "shell" application, it will be on a loop, taking in commands from the user. The command syntax is as follows The commands you are to implement Command Description Prints all arguments on the same line, with a space between each. Treats all arguments as floating-point numbers, and prints the average. MUST print an error if given invalid arguments Finds the index of argl in arg0. If there are not at least 2 args. print out an error Reads a text file containing 0 or more of commands, treating it exactly as if it was coming in from standard input. echo average etxstz script Example run: (User input is prefixed by [IN]) (Output is prefixed by [OUT]) IN echo Hello, World! OUT] Hello, World! IN averace ape [OUT] ERROR: usage average . . . [INI average 2 1 33 6 [OUT] 3 [OUT] ERROR: usage: strstx [IN atxstx pinecone cone [OUT]4 IN cript introduction. 3cript And, if we have a file, introduction.script containing the following duc on.sCr1 echo This is my introduction!!! echo How cool is this? And our application output... [OUT] This is my introduction!!! [OUT] how cool is this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!