Vous êtes sur la page 1sur 2

Worksheet for android programing

1. Write android programming for the following


a. A program that accepts three number and display their sum, multiplication and
average of the numbers.
b. Accepts two numbers x and y and swap their value
c. Validate them against emptiness

2. Design android application with the following requirement


a. First name, Last name, Gender (use radio button), Password, Confirm password,
Date of birth (use time picker), Country (use sniper) and register button. Just e.g.

b. Add image filed to the above


c. Make the background of the app blue
d. Validate each fields
e. Create database name it as “USER”
f. Create table student with the above fields
g. Write program to insert value to the table
3. Create two activities “Activity A and B”, write android programming script that helps to
move from A to B
4. Write an android program that computes and displays the square root each of the numbers
entered from the keyboard. Once a number is entered and its square root is displayed, the
program should only continue repeating the same task if the user is willing to do.
5. Write an android program that calculates and displays the factorial of n where n is a
positive integer number to be entered from the keyboard.
6. Write an android program that accepts list of marks of students and counts the number of
students who have scored marks greater than 20 in an exam out of 30. The total number
of students who took the test is to be entered from the keyboard
7. Write an android program that displays the maximum and the minimum of a list of
numbers entered from the keyboard. Where the size of the list is to be entered from the
keyboard.
8. Write an android program that reverses the digits of a given positive integer number
entered from the keyboard.
9. Write an android program that displays the multiplication table in a proper output format.
10. Write an android program that calculates and displays the area and the circumference of a
circle based on its radius entered from the keyboard.
11. Write an android that tells whether a number entered from the keyboard is an even or an
odd number.
12. Write an android program that tells whether a number entered from the keyboard is a
positive number or a negative number or zero.

Vous aimerez peut-être aussi