Question: Write a script which will accept 2 numbers and calculate for their difference (NOTE: difference is the result of subtraction). If the difference is negative,

Write a script which will accept 2 numbers and calculate for their difference (NOTE: difference is the result of subtraction). If the difference is negative, display the message "The difference of the entered numbers is negative". Otherwise, ask the user to enter a character, filename and directory name. Based on the entered character, use a case structure to implement the tasks on the given table below. (6 Marks) Character H R Tasks Display the first 8 lines of the entered file Delete the entered file Display a list of the files and directories under the entered directory Create a copy of the entered file under the entered directory. Display the message "Unrecognized Input" L default Write a script which will accept 2 numbers and calculate for their difference (NOTE: difference is the result of subtraction). If the difference is negative, display the message "The difference of the entered numbers is negative". Otherwise, ask the user to enter a character, filename and directory name. Based on the entered character, use a case structure to implement the tasks on the given table below. (6 Marks) Character H R Tasks Display the first 8 lines of the entered file Delete the entered file Display a list of the files and directories under the entered directory Create a copy of the entered file under the entered directory. Display the message "Unrecognized Input" L default
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
