








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
A lab report conveys the aim, methods, results, and conclusions of a scientific experiment. The main purpose of a lab report is to demonstrate your understanding of the scientific method by performing and evaluating a hands-on lab experiment. This type of assignment is usually shorter than a research paper.
Typology: Schemes and Mind Maps
1 / 14
This page cannot be seen from the preview
Don't miss anything!
20BCR
Academic year: 2021 - 2022 Branch/ Class: B.Tech Semester: Fall Date: 04 - 10 - 2021 Faculty Name: Dr.N.Anupama School: SCOPE NAME: BARATH KUMAR V REGNO:20BCR
20BCR
20BCR app:layout_constraintTop_toBottomOf="@+id/editText1" />
20BCR
package com.example.playcards; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import java.util.Arrays; public class MainActivity extends AppCompatActivity { //creating Instance of button and EditText Button sort,select; EditText e1,e2,e3,e4,e5,e6; int[] numbers = new int[ 5 ]; public static int sum ; @SuppressLint("MissingInflatedId") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout. activity_main ); sort=findViewById(R.id. sortmain ); select=findViewById(R.id. select ); e1=findViewById(R.id. editText1 ); e2=findViewById(R.id. editText2 ); e3=findViewById(R.id. editText3 ); e4=findViewById(R.id. editText4 ); e5=findViewById(R.id. editText5 ); e6=findViewById(R.id. sum ); </androidx.constraintlayout.widget.ConstraintLayout>
20BCR
20BCR
package com.example.playcards; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import java.util.Arrays; public class ActivityTwo extends AppCompatActivity { //making Instance Of TextView Button reply; EditText e11,e22,e33,e44,e55; //variable for sum of numbers int sum= 0 ; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout. activity_two ); reply=findViewById(R.id. reply ); e11=findViewById(R.id. editText6 ); e22=findViewById(R.id. editText7 ); e33=findViewById(R.id. editText8 ); e44=findViewById(R.id. editText9 ); e55=findViewById(R.id. editText10 ); //Taking Intent Data in a array Bundle extras = getIntent().getExtras(); int[] arrayB = extras.getIntArray("numbers"); android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/editText6" /> </androidx.constraintlayout.widget.ConstraintLayout>
20BCR int [] arrayC=arrayB; Arrays. sort (arrayB); //typecasting e11.setText(""+arrayB[ 0 ]); e22.setText(""+arrayB[ 1 ]); e33.setText(""+arrayB[ 2 ]); e44.setText(""+arrayB[ 3 ]); e55.setText(""+arrayB[ 4 ]); //getting sum of all numbers for (int i = 0 ; i < arrayB.length; i++) { sum = sum + arrayB[i]; } //click listener for reply reply.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //taking intent Intent i1 = new Intent(ActivityTwo.this, MainActivity.class); //appending value in sum variable of MainActivity MainActivity. sum =sum; i1.putExtra("arrayC", arrayC); startActivity(i1); finish(); } }); } }
20BCR
WHEN PRESS SELECT CARDS
20BCR AFTER PRESSING SORT BUTTON