NUTSHELL
Sargodha Road Business plaza Opposite P/G Islamia College Fsd.
ANDROID DEVELOPMENT
ASSIGNMENT(java programs)
1. write a program that print "PAKISTAN ZINDABAD" .
2. write a program that compute Sum of two numbers .get numbers from user.
3. write a program that perform all arithmetic operations on a integer.
4. Write a Java program to find the sum of first 100 prime numbers.
5. write a Java Program to check Even or Odd number.
6. write a Program to check whether the input year is leap or not.
7. write Program that input the name of a countries.it only display the country whose name starts
with vowel.
8. write a program that input two numbers and one arithmetic operator .display the result using
switch statement.
9. write a program that gets temperature from the user in Celsius and convert it into Fahrenheit
using formula F=9/5*C+32.
10. write a program inputs the type of vehicle and number of days to park the following.
Motorcycle=Rs10/day
Car =Rs20/day
Bus=Rs30/day
11. write a program that inputs three numbers and displays whether all numbers are equal or not .
12. write a program that input numbers of a student’s .output the grad according to the numbers of
students.
13. write a program that display back-counting from 10 to 1 using do while.
14. write a program that gets two numbers from the user and displays the result of first number
raise to the power of second number using do-while loop.