Posts

Showing posts from January, 2024

Unit Converter App

Image
 Output: Resources Link:  https://drive.google.com/drive/folders/1vp4TVMTACXblVQM-HGPc1UrqWZoAoRV6?usp=drive_link XML Code: <EditText         android:textColor="@color/white"         android:textColorHint="@color/white"         android:id="@+id/editText"         android:layout_width="0dp"         android:layout_height="wrap_content"         android:layout_marginTop="230dp"         android:hint="Enter weight in Kilos"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toTopOf="parent" /> <Button         android:id="@+id/btn"         android:layout_width="wrap_content"         android:layout_height="wrap_content"     ...

Counter App

Image
 Output: Recourses Link:  https://drive.google.com/drive/folders/1vp4TVMTACXblVQM-HGPc1UrqWZoAoRV6?usp=drive_link XML Code: <TextView         android:id="@+id/welcome_text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginTop="74dp"         android:text="The Counter App"         android:textSize="32dp"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toTopOf="parent" />  <TextView         android:id="@+id/counter_text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginTop="56dp"   ...

Greetings App

Image
 OUTPUT :  Resource Link:  https://drive.google.com/drive/folders/1vp4TVMTACXblVQM-HGPc1UrqWZoAoRV6?usp=sharing XML Code: <EditText         android:id="@+id/edittext"         android:layout_width="0dp"         android:layout_height="wrap_content"         android:layout_marginTop="285dp"         android:hint="Enter your name"         app:layout_constraintEnd_toEndOf="parent"         app:layout_constraintStart_toStartOf="parent"         app:layout_constraintTop_toTopOf="parent" />     <Button         android:id="@+id/btn"         android:layout_width="wrap_content"         andr...

Java Assignment

  1. Hello World: java Copy code public class HelloWorld { public static void main (String[] args) { System.out.println( "Hello, World!" ); } } 2. Variables and Data Types: java Copy code public class DataTypesExample { public static void main (String[] args) { int age = 25 ; double height = 5.8 ; String name = "John Doe" ; System.out.println(name + " is " + age + " years old and is " + height + " feet tall." ); } } 3. Conditional Statements: java Copy code public class ConditionalExample { public static void main (String[] args) { int number = 10 ; if (number > 0 ) { System.out.println( "The number is positive." ); } else { System.out.println( "The number is non-positive." ); } } } 4. Loops: java Copy code public class LoopExample { public static v...