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
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.