sem 220311600141
(OULEGB,BUK)
HoNS.2M>
20220101047O
CHATTERJEE
ScIENCE AssiGNHENT
WOMBN'S 95 No.z
SHRIJATA No.: :
CoMFUrER Rou No
CC-3
RoLL S11y REGISTRATIoN
CoueGE
M.JLG. : : UnovER :
NAMEDEPT. SUBTECT
Surial
No.
7 S. 4. 3 2. 1.
clas.
Applat
haahug lay
ta Cuatuy lowelcase
(Bvetiug
wan-dfied teheitonce.
packcage luplemeutuy
artudligtppecae
by huaplueutg
Hiuancliealeleuets
Ovenloaug Oveal
olg oo
CaustuctorNottod
Moume
lbpie
a ou oud
banie all CONTENTS
dha'ariad' wan- ohetler
n
uppeOna
a ll Multiple
lowecase
applat defed
no a
by tnea letteus
eeteudug olan. lettes paceage hei a
to tauce i's
14 10 4 3
Re (apul waing hullare4 Pader ad tetesuls hutlas o
’ impet jama io,
clan Amnaatrog
pukle staic void wain (shieg angs (1) thmos îoéxaption
Systua gutt putn u cuten a mo);
n Tutq-poe 2ut (br.veadlina ());
wkile Cul o)
Systouu -out-piukn(RMSTRANG No.);
Sytw oulpuatla( ton ARMSTeONG ND ) :
OUTPUT
Cutu o uo.
tS3
AMSTRONG NO.
fage
elas Shape
pulalic veid oea (deublu r)
deuble a e 3.14 +T* T;
publlc roid ouea (iut L, iut b)
iut a l*b
Syoua autpriutan (" Ara clangle 'to);
lam Hetol-ouenloas
public stahe veid main
Skapa ckí new Slapr ();
obË- oko (s, to))
UTPOT
ATa a cole 50
faqe -S)
3) Luplewuet CosbuecAa Ovealoooing
’clas Box
Box () 4do -wetuy n di<ault cauahuctr
h0-0
Box (dekle , dauele y,deuble e)
3
pblie daubta velumeC)
lam Ceustuetr-suenload
puslie stahic veid wain (Stiog ags Ci)
I inwelkes defaut eaustuctr
Box sbi 2z wew Bo(-0, 3.04-o);
ddauble well, val 2
Iwakes pouaueteizl
Crwatucy
Systea at.piattu (Valuwe in he pauuetuized cousbucfy "4
vel 2);
6UrPUT
valume in tue pon aumti2ed taustruetr =24.D
fage -()
cdon May-miu
publ'e veid tiud )
Suauma se weuo Seane (Systew. iu),
n3 Sc. next Dut CO;
iut all -Mew iut ];
ali1-4c- wext utl
max a [ol;
wax a [3;
Systn aut priutu (i Mariuu ahuewt :"t ay ):
las Mat-win-fiad
pubtic statie veid wain (sing angs 1)
fage -)
"DUTPUT
S
Eutu te
81
22
Mariuw eleweut: 8t
Hiuim elveut :s
ut ell;
clas Seituee exteuds Sudeut
void getwalessc (iut tamaneai, ht py.waks)
Vd disp-watks- scC)
Siptoun gu. putu ("thny mands ,"4 thioy 1);
clan Ar rtoud Studut
veid gotwaks. os (tet teewatks 2,iut
psj-warks)
vd disp - mank,as )
Systew aut.
clam Couuuere exteds Stukut
VeO twarksCou ltt themarks3,ut iutem_marca )
henys the-waes 3
nterel tu-marha;
Ved disp-wantes coul)
Syeteuout.piuttu ("Rall no. "troll);
cla Minoudhy
puslie static veid wain (Itriug angs [ 1)
Seieuer sc Mew Sieuca (;
Ats a2 Ww Arts ();
Systemut. priut4 lea (scIENCE S10bENT bETATLS:");
Stqet.otl (t6)
tctonles-se C79,20),
se-disp- wanles-scC);
Systniout pritlu ("+RTS STUDENT DE TATLS);
a getell (z0);
o4twaes
A-
aats (s,3):
di'sp- warles-aats ();
Systeu aut- prit (" CoHMERCE StODE NT
DETASLS:);
0UT PUT
4m- get-wanles-cou (36,18) scTENCE STUDENT DETATLS :
towmdisp-wanes com ( Rel No. 10
Theay manks 1q
hacktal watks 2D
ARTS
Ratl No.CrUDENT
20 DETATLS :
Bxjec wanles 13
COMHERCE
Ratl No30STOENT DETAILS :
Theey
Sudeal mardes 18
6 uupleuuet Multiple ahei fau ca welwg atexats
class Studut
veid qet-vll Ciutr)
el
ved putall ()
clan Teat extends Shdeut
daukle anks J, vnaks 2;
weid qet-wanles (deble ut, deuble u2)
manks2 m1;
vid putNanles ()
Sypteu auat paiutlu -faut 1moey " manes 3);
Syote ul. priuta(Pat 2 wanks manks):
vrid
deutola totseoe
public vei& put.seoa )
vd displaq)
tot. sco wahls11 maka 2 Scon
put-rell ();
put-mank t)
put-seo ();
Systuu out. iutu ( To tad aca."+ bt-scan);
clan Mulipleaheit
he-qtll (ise)
qet mandes (41-8, 46-4);
Ral No, 1 3
Marda obtained:
Part 1 manks 42-8
Rat 2mants 4S-4
Spons s Loe 16-1
iwgalig dee package.
packag Shape
public elan 'eircle
pubstie double anta Cdenbta ) paekage
double an',
pockage Slape;
puklic elan biuge Dbingle olan wnde'Skape
pusu'e daukle auta (oauksle h, daubla lb) packoge
dekle a
A8S*A* b
etu (au);
poclcage Shape ,
public clan Sauae I squane olan wd 'Slape package
pukilie deable oea (deulale c)
potkog Shope;
pteie daukte ata
Ictamgb clao uda Shapa' pasleage
ldeulle ,deukte b)
daukla M
tuu (ar);
Packcage taleulate
tupont shape.
ela Cal Area
pblie Ltahe veid main (sting angs C1)
oloelsle aac C. anea (C.o):
daubla oea-t touta (s.0, ts.o);
dewale autass anea (te. o);
Syste autpriuttu( Area ) kquane t aa-);
denbla anea- n aa C3.0, C.o)
OUTPUT
ArLO cirele 78
Ava thiaugle 6-0
Avea o uetongl 3s-o
publie staic vold waaiu (Shing ang (1)
cha eh,
iut i, L;
Systen aut. puutln eutu a ctig")
tor Ciz0,<L; irt)
Ch st chantt Ci);
ch cAan) eA 32);
aut. iut (ca) ;
Euteu a shig
ShRiJaTa ChAATeREe
sHIfAtA eHaTtEaJe E
oge-9
lan NtwThread enteuds Thread
public void vun()
fo Cintio c;ivd, i-)
Sypeten eut-platbn (" Chald Thrtagd t M* i):
batck (IutewuptdExaphau e)
3
fystes sut piatalExitiy clildoreak ^);
clar bxteud Thy ead
1pustie tstie veid wain
wt. staut ();
'tr liat irS,iz0; i--)
"hyead.slaap (ro0o);
atch (SsutuuptadEsap tsu e)
'Syetem, sut. piuttn (u uain tread dtenpted.");
0UTPUT
Child thveal : Thread [Deuo Thread , , wain]
Main Thr ead !S
Cui le Trto 2
Eritiug cild tread
Han Bhead! 2
Main Tread ? 1
Main thneod rifng
fage -
16) CreateA baaie applut by exld ug Arplat cia
Lwpnt jana auot. ;
public clan Hello-java entedo Applet
lpustlie veid paint (hvaphies g?
Jus is tawal Hellojuajawa, Oheu, it is ceupiled as
ri te the HTHL tode as -
LHTHL
71TLE ) Nelceua to JAVA Arplet </Tî TLE)
(CENTERy
<MPLET coDE Hello-joua elam
</APPLETY
</eENTE)
<HTHL>
uwpiled appat. ke ca vitw tlu euput mawehag,diapayel
BuTPOT
Aprlet Prgraiug is doua heu !!