Professional Documents
Culture Documents
Adobe Scan 22-May-2022
Adobe Scan 22-May-2022
he nunitre
Fakrenhdt sc.ne »t auble Sysemou peind l nven
S ne2 );
celsiu (fahrerhet32) o.5ss) um
2 4at4at *is
l'rastraiak ot nur
Syherout. riotlo
cheK 2
numben
i n d r t om
Seonnt sc -
u d printin
nen) Stornen
tokern
(ftrid
anum hen to
ge,) else
chesh:
Cgioa sD@ntline t)
Lngth Orig.nol.Lerah
fornf ' longth -I i i > :o- og)
Sysden. ou preinf tn The ",
n se +Orinal. chor H PumbCn")
Oriinasqualg Crevere))
else
Sshem Ouk. println Enterted rumber t
Publie
m-Ou print ( n4 4n?);
for ( 2; ittoudfi)f
yeteOut. peirlo(rotr 6unumb
nitn2,
farnen se re Seannenlsyeten, in ), Syshemdulprinf an
whe a Java prognarn calkulete pau C 1)
4
ing claus.
class Power
StoAC nt wen ( iot hase, int exponent)/
6 wnite a Java progrom 4 Swae the dat
the data
membern of an
okject. inf pauer:
or Cn4 is lj #k: eponent ?t++)
clos Con poert power * hade
retunn 12wer
no
Con Cind no)
Public Stahc Voiol main ( String arastT)S
thi3. n0 n0, in base, eponent N
Scon nest 3 ned Seonnen System.in)
thod uges Con objecds
stem Ouspruinf Cnten the base: ")3
clasg
hase SC. nertlnt C;
class aig Car c', Cor C2 Systern. Oul.prinf ( En ten the erpone
3 wap
publ'csBahc vold manSeinq orgsts)
enponent Sc. nert 1n t(
Systsm. Cu.print
CArea
rectongle "+ Strirg
pname
model ;
odobe pr' Ce,
Void hreaCint t)
Peodut Crt int pid, sirig pra , ng pr
lead 03 deble peie) {
O3 3,l41t*T
this pid pid
StemOuk-print Area ef cincle -",.
"403)5 hi9 pnome prome
this. penelel pmdes,
c lass Demo 4h' prote pre
Dublie Statit Vool' maun(Strung Ogat) iot gefp:d t f
CalGelahe retun pid
c new Cadulale )
C. Area Cio,to )
.Area 10.5, 20 .5)
getnamets{
returt pname 5
tAnea( 10)
rnggeffnlet f
G1 Wre a java Program fo d'splay palur retunn pmole!
letail( prucluet iol,produtt namey prooluer dasble geHPrte cof
méolel and pavdust price) or n oo 0f
rehurn prite;
podutS.
clasodut Publ'e stak'e Voio d:s playfoamat t
emOuf prin o m , Name Moolel
Roame praey