Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write a script that will repeatedly get input from the user and process it. This

ID: 3628959 • Letter: W

Question

write a script that will repeatedly get input from the user and process it. This is done via a menu which requires the following input and provides the associated functionality:
list image_file- type
eg: list jpg will simply list all jpg files
You may assume that the image types are only jpg, png
and gif. The current directory is used.
display image_filename
eg: display fish.jpg will display this file.
The filename can reference any file on the system.
identify file1 [ file2 ] [ file3 ] ...
eg: identify fish.jpg fred.png
identify the file types of the specified files.

quit
Script will tidy up and exit.

Explanation / Answer

display image_filename eg: display fish.jpg will display this file. The filename can reference any file on the system. identify file1 [ file2 ] [ file3 ] ... eg: identify fish.jpg fred.png identify the file typ