Question: write a function that will select, using pickAFile(), a picture file to be opened. If cancel is pressed in the pickAFile() dialogue box, then you

write a function that will select, using pickAFile(), a picture file to be opened. If cancel is pressed in the pickAFile() dialogue box, then you must ask the user if it was a mistake. If it was a mistake, open thepickAFile() dialogue again, and repeat until it is not a mistake. Return the 'made' picture, otherwise (i.e. cancel was pushed and the user indicated that it was NOT a mistake) return an error message.

NOTE: the JES function requestString (see JES Functions-->Input/Output) should be used when asking the user if the pressing of 'cancel' was a mistake.

This programming is in JES, thanks

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!