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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started