Question: Write an Android phone program that has six rows of widgets The first rowhas one instance of EditText with text Num 1, one instance of
Write an Android phone program that has six rows of widgets The first rowhas one instance of EditText with text "Num 1", one instance of TextView with text "" (representing division operation), one instance of Textview with text "Num 2", one instance of TextView with text "", and one instance of EditText with text "Quotient. The second row has one instance of EditText with text "Num 1", one instance of TextView with text "%" (representing remainder operation), one instance of TextView with text "Num der" 2", one instance of TextView with text ".", and one instance of EditText with text "Remain- The third row has an instance of Button with text Start or Restart" The fourth row has an instance of Button with text "Check Your Answers The fifth row has an instance of TextView with text "Quotient is correct or incorrect" The sixth row has an instance of TextView with text "Remainder is correct or incorrect". The users of your program will click the button with text "Start or Restart" in the third row. Then a random integer i with 0 sis 99 will be set into the two instances of EditText with text "Num 1" in the first and second rows and a random integer j with 1 sjs 99 will be set into the two instances of EditText with text "Num 2" in the first and second rows. The users of your program will input his or her answers for the integer division and remain- der operations for the two randomly generated numbers The users of your program will click the button with text "Check Your Answers" in the fourth row. Depending the correctness (or incorrectness) of the answers from the users, the corre sponding information will be displayed in the two instances of TextView in the fifth and sixth rows Also, during the program run, when the users click the button with text "Start or Restart" in the fourth row, a new pair of integers should be generated and set into the corresponding instances of EditText in the first and second rows
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
