0 ratings0% found this document useful (0 votes) 25 views13 pagesJava Assignment 1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
APEEJAY INSTITUTE OF MANAGEMENT & INGINEERING
TECHNICAL CAMPUS, JALANDHAR
Subject: - Programming in Java
Submitted by: Submitted to:
Rohan Kumar Jha Mr, Daljeet Matharu
BCA-5 (Assistant Professor - Set)
224023Rarignarerck =|
OAD Wak ane Sone auarisanayr
Rew Language Soya? ;
de The. piitrany oljectve ob Tava programming Uarguage Crete
Had to whe Wh Partnblle , Sede and recune prognamniigg
Langrnge. Npaccd bron in, Mene are allo Reme exelhod
bealuren, Which WAYS a4 udbestack sade ih Mee albanicy
A Aa Languoge Ta Leattunes Q Bava ane ale hme
aS Save Kura weda
exfflain Se Leotiines og
AMOR athe werk eerted Redanen ok the ava Larmuaye a gon
S Swe t- Sane La Very cary to Learn and “Wa syctax a imple,
Bean ard easy be understand Accardii ty day
Prcre ayBters ) Tara Serguaje ‘a a smile prosmesing Lnguage becuse
a Sasa Sybex le Loved on Crk.
+ SAA WA Remeved many Compicnded and sandy ured ledunes,
ex sacle Oherskran overloading ee
+ rene WB we Weed ty remse marcterenced objeds becamne
Prere War Automatic Carbaze Colbecthon i Tava
D Okjeck~ ariated 4— Tava “e abject - ankeced, Wraraieg,
Sangnage «Everytting Sala Wh ar abject
Objeck —anientes meank toe angarire our ythsare a a
Combinskion a, AMthencd Hapea oh chhecty Mok UWcononake LA Bae
Ada and bebarian, Oofs A < uathelalogy Wud suQldieh rthure fg
Aewelsprr|erk and uaittararce by Proving sore sade. a
Bere Corcebbha ob OOFA anc :~
DOWjeck SD Faby marca
wD choy S> Ruxtracion
yihertnce > Ercan
» Daler InWheerded i Fava 'o Wako wiekertek
Because ‘we & Mdtened From other
Vagpager Woe ©) C44 ere.
There are to types ob plore rLthoare bared and
bored, Tava revides a egrsarc—bared Web.
The SAUA pladterse Salter Gras wuart cliner patterns We Boe
penne Ankh Ss a Aathoane- bared Bdbants Wud utd ot tp
de Aker hankoane—hared takers, TA War tuo ComberedeBUISaN, inthe
BE eM eee
Bawircemenct CTRED urich ta waedite bead Jawa charre
Dre Vita) Machine Agnanicattly
Qglecde vertien. TA chedaa he Code brates
phe Wd Car Vislete acco 3
: gs to objects
Sey pemagen Tk kehenines, Wek revered
PA ACCOR nud ah reading ard voriting te the Lock sok
Jara Languaye Provider Mere reewiken by Lehadd. Sore
de curthy cam abso Mp brevided by an ahhedion devdaker
enPictly Morena SSL, SARS, Cagptogrethy fortebde 1 Jaua iy parteblle because A hedilitber Yar to corny
Je ava bytecede to any Padtann. Th deer’
required any peer tation «
D Wigh- fenjermance t— Sara a Pater thar other tradbioned
WwdeneGhak Progeny Uangisges Dace
Sova Lyhecede 1 "chere "to Ustive Code. Th xRid a higich Withe
Lid rlowern Maro Compiled Language Ces, + +)+ Tava a
nn Wehenpreted Legume Mad is why Wakecen tar combed
foul, cenaTore
Jvexsass | nck
+4 Right to Medd Ge ara
Right be Seta Guay pre
Lege te Right
Leak te Righs
Lead te Rak
Leek to Right
Lett to Risk Lesiad AWD
Leth 4o Rig Letisae xoe
Let Ae Right Losicad o8
Lett te Right Virsae ANd
Lekk A= Righct Bibsre Mclutive o®
Right to Lege Terhany
Right te Lets Poninnrancewdisite
Moved beheu
Adie
cheneteny
Medue,
Aardion
Suorncdion
D> Onany cheno :— Omang cyerokena weed oly ome
= BM Mey ane red fe Wen] rerr jecnerre
GA Wegative a Valie.
mary wihax, ured Ran wegediug Ake Valued.
Wrany plan Wilcke a Ake Pave Gls. TA fee
An aukowradic CormerreSion te Wd hen Ae Aye of te
CASE He tyke yee on shed Otte eehay
Bony Wumenic Prometion:
:
© AA Tucne ment oferctan, ured lan Hrenerenag AX.
Valse by Ls Tene one tue Verein oa Weremauk dete
@ fork —Wncnemank 1— Vvaliie La th
Mak red Ker Compadiug
EEN ERO 8
Pre ~Trcnerenk 1- Valine
TA Wenenacted Rak, al
Meer Gre ROW Le corgubed .
+ — — Decrement chenaken dred ber decreatiiy the
Value by (There ane two VanieXen & decrewent her
aro!
D Fak -Vecnemecd
© Rana — SacnemarctPee Are Led be ce
eoben Haar and VOX tua
eRRer ee Combest
Seb LAELIA Leing nbehenasca, Gell a Codie
Rema ane Krek 4 Pee
Read AMID aD" Legicnd 08" chenbann i
AN ge LOR gate AA La
PAOD Cor ae
Ber te
Mins te heek WW win the
Gok HE eho
evden Ua de
Condon cers ane
© EB, Legieed AMD t Return Rane Wher LM Cudiong
ane Ase
SW, Legteod ie netted Anne 1G ak Seask re
Cation Ve
Lmao, Ane
+ Ly Lghed we
Ydae and wulce —Yerre,
When a coin is
S =, nee ==
ty RIS een ate
Sie Cas he chaite het
aan ER
rcs EXEyersrars.
jako
ba Wah NK ERY A EL Wehegen typed
Fertaruing abbdsbe ony Aieny chests
Ty WS e AND oyna neuen, GA by GE Mob aL inhed ule
+L, Witae Of chenctan metus Bt by Gk 08 Aiebd vane
2A, Bens KER cherie AeA LLY LA HR Ah ul Ub
oA) Basa ComMerad chowder TRA a nnaay clpeutben
LARK arn Ae bela Corbenack nekrerentudion A Mee
apd Value jie Gitkadl Wha (verted
Trere cherskerr ane we bo abich the
LeRA or aiger, hey WUMWSng en aWaeg,
the worker by two, menhertvely Coy Car te aned Wd
te, Nate Gy Ge AWE ete Ly Rue
8 SC Lek ARIA werden. - Sitka We KA he tthe 4k
UTP, Ch RFE EG
OD MUARINSER Be Karbon GAA Acre Posen A tue
+ >>) Sighed Kyla ahh ofeatan i Shtha ee Lis ok
amber te he might od OWS © oo vada beak
aa Setheant LA eked on Me age A the,
Swdlan eblecd be divides We Wade ae
& tun.
aN 3 ne
AAD tober
Dore Posen
DPD, Waagred Righk SU eheuters- Sidhe the SAA ue
tharher “te He Wither te the lait ak gh 0 on
Veda Vetk a - mero, The Lethusk Be a ack
O-
Losreuk Wddes boteg, SLA Las
+ Bete STAN pte C1 Megan adie: tube. vate
Se er Na AO ale AR Gases: So,
erate“ byte Kato,
+ Shere 1 TA tye UML tegen dake type. Vale
Ea cane ISTO, Sal Udine ten,
eta We i thank 2a;
We TA & tyte sar Lt) Wwhegen dada tyhe- Valo
tents ro -UNTNAS A Fe HAREM,
Bead Yaluc Tere. Surble . Weeds et Wie;
© Meug 2 Wie tb byte sCUG GAR) tegen ae alam t
Pe Fes VEE TL OIG stot
AIUPABNY OSC ASH TVS ATL Ded ate rene,
euephe + Lng \a\oms_;
DS Fdnding- Reed Waker,
oT grenh chutes Meck, double
+ Pooks De La byten Car bia) Yoo dota tyhe defautt
Naline Semen O.0 (. exantle + Nek Wath;US Becton +
reek er crenck
Srsek ayes
a ek
Vetere ak Warten
el at Ns,
AMR TE 1 byten CUES) aioe
eA Liked
ene
Rauge Oho 65,555
emanyhe ~ Ch eal,
BRooleow tyke A wred When Ge Gat te
PANG Ce Daag HL execadion WL
Preeren There ane ody tin Value Wk a tools
Ayhe can tohe
Are en, Hake
Remember, bavK there
trext
Mande Weve bean dedared os,
Repiomrd: Grodan tyke WA dowheh Ky Ae egioand
Berke. od en ety VR atone
e - — -
Piette Deh Tyre |
a
eee
c
[chonecten [decdennD Setertor Stokemenk
AD Ttenskicr Stebenend
D Bak sy sernracdk
Selector Stkerek +— Ty atlson youn preg te
hearer ee PR A seem exertion bered
Ow Nee aikeme aheciien ots Mae Vostoble
AAR Spader endke + Ris Nee renee taggether hen aot — asta ing.
Biekernenh to execute andthe, ze
Q) Te Stedemend «ta Soria, tre. Mt” wert Ws Lned As evelube
OW Conditions The Cemtined gh Ake Pregmiam Le verted Aeperding
Shor Mee aberWe Couarios. The Condition AL stdenent ©
Grew a Gerdemn voltic ,erver Aave on bec.
nies
== WR Cewd) >
1] Ande mrends
=
CUD Qe hae ie sttemrenk $= The Woetse attened, Lich
Jose, austhen bloc & Cede re, ele bho
SHE (ays
1) hoke meses
3
GD Qe he -@ PEAS Loe A Tre Wee cbse AQ atrbenend
mn ate a. ghrtemard Mtlored Sy wade eae —
ae, < PON NO:
ny Beebe e8. Ta Aber wrmds joe Cr >)we Cemard $
Ta habe nant
hae 2
Xe Cees S) 5
TT take ren |
=
CD Seite Strode mash 2TH Sate, Baty Ahemerts,
ene Bear to "\R— ebae pike atta. The ake
Re ‘ z cede ed core
actos, wabite blacna A code cil 3
F We exerked bored ov Me Yatdla:
ak a ate Cre
WR GH beng aelkched.May Shaken:
fo execnte Nea biti
euSdion eualsoker te
ured to ¢ ‘
> base beobt— Te Rae, ba Rook 1s ean te
wad CAA,
Srekhen us ko “WM re dhe Mech Venice, cher Mie om
ey AEE INEIS [Dac rasask Si a, Xv-gha Nine. oA. Cordacatoe
She for Lew ody When we exactly Muss
We aA fo execute
ation
ee
‘ Whe Wumben Rumer
Ake bhecle & Code
ar cock Meee .- Sena prstter an enhonced har Leek to Asoverte
We date xinuctuves Wea cana an Callerlon Tu he ten,
Cncly Lenele we Aw Heed bo Atplote the Leck Varioble This,
BINNS Aw ine NOSE Meat Shak AGAR Saud deren Selves
ber Cd ete Aye Van:
aay Mame [Cathe Nor tame, <
1] ahwke wast,
GUO ane ee ey be thenke oven
Mee wntlaan @ xtetemerds, waubdthle Rien, Howeren use:
darth Miers Ane Wubiben a endlora, ‘ox advance Mt
eemmwneded fa pre a abies Leck ?
Av) do~ Wile Nock :— The Jeo-uhile Jack chechd Ane eandition
ok Ma end Ae Leek althern PXeOAng the Leek attends
Laren Hee aber eb theredbe ia wk uot and we hove ta
execute Moat lek A Vet ce ue Mae de~while Loh
Tee abc Weaes am Me ext Coto Soeh Leck Smee We
Cordon la Usk checked iW adsonced THe Dyetax OM
do hiba Yrebls sua beloot—
Jo &
1 xkedkesrauts,
3B die Comdttion J;
By Wary Stede trend 1— Tamk Aleteredea anc toed bo
Arnoraken the Coctock & he bregnras to the she cnc,
Rrakererda Ta olen Weadn dun xobeneda Asoc
Kee execdion Sarctad te re ctler ask 4 Aho ie .W bredk stetenad - Ax Ade nore
Bhakewred ia LA te lence fu Cusrend [oo a
ad & shen Aka Cotou be dh
a Seok
Duggeks, tha
‘ shoe
en awitekh Lik
LW) CorSne Satereut Jo Ouline lercete ated
autora dees!it ares.
ahecQle. fast of Mee
nee
na Joely sokenead
Leek ark Jarl Co kro
Leck (arediately