Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 1Step 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