Question: Please solve using the Python language with the JES program. Also show the proper indentation for the code. Thanks! Problem 1A: Write a function called

Please solve using the Python language with the JES program. Also show the proper indentation for the code. Thanks!

Problem 1A: Write a function called getInfo() that selects the caterpillar.jpg picture from the file (Picture is displayed below). Using the getWidth and getHeight functions described in Chapter 4, print out the Width and Height of the picture as shown below. >>> getInfo() Width of Picture: 329 Height of Picture: 150

Problem 1B: Create a new function similar to the function from problem 1 name pixelInfo() to also get a pixel from the selected picture and print out the contents of the pixel as shown below.

>>> pixelInfo() Pixel Info: Pixel red=255 green=255 blue=255

Problem 1C: Modify the function from problem 2 to set the color of the selected pixel. JES has predefined colors (top of page 110) or you can build your own using makeColor or pickAColor. The picture should then be displayed on screen using either the show() or explore() functions.

Please solve using the Python language with the JES program. Also show

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!