Question: 1 (20 points, Exercise 12.6) Write a program that displays four icons in four labels in a two by two grid. You can use the
1 (20 points, Exercise 12.6) Write a program that displays four icons in four labels in a two by two grid. You can use the four given images files "fr.gif", "norway.gif", "uk.gif", and "us.gif in your program. 11 2 (20 points, Exercise 12.7) Display a frame that contains nine labels, a label may display an image icon for ."X", an image icon for "O", or nothing. What to display is randomly selected. Generate randomly an integer 0,1, or 2, which corresponds to display a "cross" image icon, an "O" image icon, or nothing. The "cross" and "O" images are in the given files ".gif" and "O.gif" 1 (20 points, Exercise 12.6) Write a program that displays four icons in four labels in a two by two grid. You can use the four given images files "fr.gif", "norway.gif", "uk.gif", and "us.gif in your program. 11 2 (20 points, Exercise 12.7) Display a frame that contains nine labels, a label may display an image icon for ."X", an image icon for "O", or nothing. What to display is randomly selected. Generate randomly an integer 0,1, or 2, which corresponds to display a "cross" image icon, an "O" image icon, or nothing. The "cross" and "O" images are in the given files ".gif" and "O.gif
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
