REVIS (ON
WAP u Java to nputa
character Check ana pnat 4 t
VOwel onnot
IS can uppencae
class Vowel
publucAtalie ved man (charc)
an upper case vowel "):
yslem utpntlnl"TE
not arn uppAeose yuwel";:
P
(aVESTIDN GANK)
WAP n Java to
am
Ipat a charactes - Chack cnd phat
an sppeN cae ale habat a.
adupt or
Aeme Apeal chanacter.
Panqramn to check type ef chazaclé
class Check
pubie atate vord man Cchar c)
Syslem:aut pauatln(upexase";
`ysterngutpnhtla (" Louecase")
Sytamsut pauita("A dsçt").
eli
Byslemeut paiatta(" Spcial
chr")
ogxam -- WAP in Java to input wo
[Link] anan operator. The operalor
Can be Or Boseol on the
QperatoY pttad
by the usen y
Hae operaion Ahould
ohodd bo dra dnthe
tuo numberu Gol8-1)
Tnputi 1 3 , else
Outpt 21 (as * 3E2)
Drput
Outpt :
:1,2,t
(as 7+2=4) 3
to talcilaon
clans Oprafon
pubke otalte Veid main(intaint h,
char
int
tc+)
d= atbi
Syskym:eut pnind(d)
2
d-a-b
Systemeut pnnt(a)
d= axbi
Syeteme sudi pnat d);
3
elie
dz al b;
Susten ut prnt (d),
3
elae
[Link] prat(uDavald"
Pregtam- WAP Java to
hput base calay 4
cs per
Salay o upto lo000
HRA =1 L6 5 basic salany
DA= 5/- q baste salany
basie
lo,g66
saa
more than
sadeg
Saday
HRA 8/ o 9bane
8/ salary
DA 4 . ) baoie salay
37. bai'e calony.
Calcuale NET SALARY.
NGT= baslc+ HRA+DA-TÊ
SAL
Proq1am to caleeulale net salany
claas Salo
bbleistatc veid masnldeukle s)
3
dable hdiTj
h=oooob;
2 2-0 /'o00* b
else
h 8-0/|0o0*b
n= bt htd-l:
System t pnintln("HRA " +h);
Sysen out pinttn (" DA='+ d)
-Syalea out patln ("lT="+ ):
Syalemcut patla ("Netsal='tn).
Preardaf - WA n JaVa to inpuh
if t an een
class Check
publie atate oid ngain (ent n)
anÁ = no2 0?even:"odd"
System:auB paindka ans)
AP in Java to ingut Ian
nua het. Chck and pnanE
h cheok Sracllea
class chek
þuble atale uad main tnta, tat b)
nt c
calasb)? aibi
Syskem outpinta("Smalle,")
Program7- My Mohan
a prraa to has wten
nput a numnhe:
Sngle dyt,
threa dyt nunher
not eiten these
He shauld
is unasle dsplay "rnvad"
to wte entu
pogm himselt Please hep hum
toCoplete his pragram
bind type number
class Digi
elai9 ee n<=g)
Systemout pintta ("eubhdygt )
SystinÇuutputa (3dyt),
ele
Systtn:ond
wnber Ans-()nK=4
22 n<=499
A"Ivolid"
yeAR 2012-19)
mber
-n
void maia (int a)
Syenutpantln (a+5),
else
yekm:Ouh println la-s);
(kice cordlonàfalse
SA WAPun Java to nput th &o18-19y
amowt 9 unchane and
Calculate the dscend as pe
the
talauig tasua
Puchase ant C) Dscsut
fren to looo
abee lo0D upto 5o00
-atove 500
Pant tha punhase amut
Deoceat calulaled and Che.
aneut to ba pard.
Dont fhehase Amont XDiscoufs
Amtto be þau =Punchese Ameat
Diocout
Proginm to chack amount ad
/Pmt diacount, amt to b aud
claas DLscewtP
Rubic Alalie roid maunldeuble. p)
clouble d,dp paud di
dp= 0:0d;
Rbpa<Sco)
eliei (pazeloo0 ce
lo-0d
elee
dz pa * dp /100:0di
-paid pa d
SyetemoutipriaPunches
ant + pa);
Sys kem-ut pneo l"bkcent'td)
Syetem but ipantll"Amt pad'
3
n
punt thens n
and
AAOpuitwhehe thein Sum
aunle dugt o a dausle
6a
dipt mene thana doubla
dit nunbe
Paagam tocheck dLun
pulele Alalie ved manliN a,nt b)
int bum= atb