0% found this document useful (0 votes)
32 views1 page

Assignment 1

The document contains 14 Java programming assignments including: 1) Printing a string, 2) Calculating sum of two numbers, 3) Performing arithmetic operations. The assignments involve tasks such as checking prime numbers, even/odd numbers, leap years, arithmetic operators, temperature conversion, vehicle parking costs, number equality, grading, back-counting, and exponents. Students are asked to write Java programs to complete the programming assignments.

Uploaded by

Kashifcs 560
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Assignment 1

The document contains 14 Java programming assignments including: 1) Printing a string, 2) Calculating sum of two numbers, 3) Performing arithmetic operations. The assignments involve tasks such as checking prime numbers, even/odd numbers, leap years, arithmetic operators, temperature conversion, vehicle parking costs, number equality, grading, back-counting, and exponents. Students are asked to write Java programs to complete the programming assignments.

Uploaded by

Kashifcs 560
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like