circumference of circle.
2) Input the value in Fahrenheit use the formula C = (F-32)5/9 and
convert that into Centigrade.
3) Input 3 values from user and print the sum of these three values.
4) Write your name in given format. (Use only printf, \n, and \t).
*******************************
**
* your name *
*******************************
6) Write a prog, which input your date of birth in the form of years,
months, days and then covert into second.
7) Write a program, which input two dates, (the current year,
month, days, hours and seconds) and (birth year, month, days,
hours and seconds) and then tell your age in (year, month, days,
hours and seconds)
Write a program, which scroll your name on screen.
9) Seeing Q.No 4 and draw the boxes and your name. (Using
gotoxy and for loop)
10) Write a program, which input a number from user and print its
modulus value.
11) Write a program which input temperature (centigrade) from
user and print the output according to this criteria
o If temp below than 45 it is very hot (temp<45 = VERY HOT)
o If temp below than 30 it is hot (temp<30 = HOT)
o If temp below than 20 it is Normal (temp<30 = Normal)
o If temp below than 10 it is Pleasant (temp<30 = Pleasant)
o Else Cold
12) Write a program, which input Numeric from 0-9 and print its
corresponding values. eg Entering 1 show one.
13) Write a program, which input any keyboard character and
prong either it is Alfa, numeric, arithmetic operator, brackets,
vowel, or other character.
14) Write a program to add five numbers using scanf statement.
15) Write a program to input the names and weights three things
purchased. (i.e.Mangoes.5kg, Sugar.2kg, and alt.1kg) and print
their names and weight on screen.
16) Write a program to read the values of A, B, C, D, E and
calculate X by the formula. X=A3+B2+C+D/E. .
17) Write a program to find out the total expenses of a firm by the
formula Total expenses=Bills + Rent + Marketing +Misc.
18) Write a program to input principle (P), Rate(R), and Time (T)
and calculate interest by the formula: I=(P R T)/100. Print the input
values and result on screen.
19) Write a program to add two numbers and find out their square
by the formula: (a + b) 2
20) Write a prog, to input 2 numbers find out their difference and
square of difference by the formula. (a-b)2
21) Write a program to get the values vf, vi, a, t and solve
following equation : vf = vi+at
22) Write a program to get the values of a, s, vf, vi, and solve the
following equation: 2as= vf2-vi2
23) Write a program to find the smallest values or smallest number
by using logical operator.
24) Write a program to get a number from 1 to 5 and return either
the number is less than 2, equal to 2 or greater than 2.
25) Write a program to accept 3 numbers and print the smallest
number on screen.
25:
package javaapplication13;
import java.util.*;
/**
*/
/**
*/
System.out.println("Enter Value1");
System.out.println("Enter Value2");
System.out.println("Enter Value3");
int value3 = s.nextInt();
else
24:
package javaapplication13;
import java.util.*;
/**
*/
/**
* @param args the command line arguments
*/
//System.out.println("Enter Value2");
//System.out.println("Enter Value3");
if (value<2)
else if (value==2)
else