Question: Using Kotlin on android studio need to add a piece of code that will allow me to press a button to calculate and display the

 Using Kotlin on android studio need to add a piece of

Using Kotlin on android studio

need to add a piece of code that will allow me to press a button to calculate and display the average of the 10 intergers that would of been input. additionally i need a button that will allow me to find the minimum and maximum of the 10 intergers that would of been inserted

mport landroidx. appcompat. app. AppcompatActivity mport android. os. Bundle mport android. view.Display mport android.widget.Button mport android.widget. EditText mport android.widget. Textview mport android.widget. Toast lass MainActivity : AppCompatActivity() \{ override fun oncreate(savedInstancestate: Bundle?) \{ super. oncreate (savedinstancestate) setcontentview(R. layout. activity_main) var numbers= IntArray ( size: 10) var count= val addButton = findViewById>( R.id. addbtn ) val clearButton = findViewById(R.id.clearbtn) val input = findViewById(R.id.input) val display = findViewById ( R.id.Display) addButton. setonclickListener\{ it: View! if count

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!