Question: Must be coded in Swift Problem Write a game for iPhone. The application should provide a button Help to trigger the display of an alert
Must be coded in Swift


Problem Write a game for iPhone. The application should provide a button "Help" to trigger the display of an alert view to tell the user how to play the game (as in Figure 1) The application includes six buttons that are associated with random integers among 0, 100, 200, 300, 400, and 500 without repeat, The buttons should have background images The application allows the user to click any two of these buttons. Every time a button is clicked, its associated number should be displayed on the button and the total number of dollars that the user has earned is displayed at the bottom o the screen (as in Figure 2 and 3) After the user has clicked two buttons, another alert view is displayed to report the result of the game and allow the user to choose from playing again or exiting the game (as in Figure 3) 1:34 PM How To Play Click two buttons to find your award OK Help Figure 1 Problem Write a game for iPhone. The application should provide a button "Help" to trigger the display of an alert view to tell the user how to play the game (as in Figure 1) The application includes six buttons that are associated with random integers among 0, 100, 200, 300, 400, and 500 without repeat, The buttons should have background images The application allows the user to click any two of these buttons. Every time a button is clicked, its associated number should be displayed on the button and the total number of dollars that the user has earned is displayed at the bottom o the screen (as in Figure 2 and 3) After the user has clicked two buttons, another alert view is displayed to report the result of the game and allow the user to choose from playing again or exiting the game (as in Figure 3) 1:34 PM How To Play Click two buttons to find your award OK Help Figure 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
