0% found this document useful (0 votes)
3 views5 pages

Discount Calculation Methods Explained

The document appears to contain programming code snippets and logic related to discount calculations and date handling. It includes various conditional statements and outputs related to discounts and days of the week. The overall structure suggests a focus on implementing a discount system within a programming context.

Uploaded by

Debanshu Mondal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Discount Calculation Methods Explained

The document appears to contain programming code snippets and logic related to discount calculations and date handling. It includes various conditional statements and outputs related to discounts and days of the week. The overall structure suggests a focus on implementing a discount system within a programming context.

Uploaded by

Debanshu Mondal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

frognam

Correeko1l 2 nd lot
chonld
in nd e
main mehad,

qTeatest");

le
oplnl Not iviaib le
5) Aad ee ires an Sop ln
5);
ldin ible by Lbotn"),
Sopln Divigi ble by nthen)
6) Protram
lat ine iide Maln methud
Should be
ola

Braes

dbue ipe- ClossJcp)*oO


Sopln (" Loss Porcertougo

co uble +ppen

Sopln
Araus acbon)

S o p l n " No Protit ad Loss


Cudeve Discosnt

Sopln ( Suttekiveve Distnunt


iscot 20% and
for 3uceens ive

Singa fqinlet D:'s tput

e u r e t

=23o single
30>)o
Hence irst d's count is belten
Code

ouble dl=
douste d = (20+16- (( 204 10)/o;
double d 2 3 (dto0 Ap;
noln" 20o
30°o distount i better tor [Link]

Copln (" Qutceive disnut bellor tor sbmer

Sopln SanQ
p. S.v.n Cint n)

Caso l:
Sopln " Dayl: Suday :
breale

Sopln (" Day 2 Horday;


Cae 3

Sopln ( Day 3: Tuesday


break

Sopln Dayt: woaandoy;


bieadej
Sopl ( Day 5 hday
bsesde;

oree)
Sopln Dey7ahwdy
brele)
defult
Sopln l 1nvalid Choite. Pla ente
beeem 1o 7

e )
Sopln( Honth l Januauy
brek )
Case2.

Sopln t Honh 2
breek ) ysey.
No do it by
bogran Looicoy ole He mohod pst be
Coree hon Seond Dastine inside

Sopln C" Num ber

Jor h'on D do

or Cint i=l;i4- 20,in)


Sy stemout. prinf ln (Qu;
orite pSoplaC)
Q very h'mo Serhon
p.s

SocionE

Ci °/o 2 = 0)
System. out. print (i+

(i+
System, out. qrind

lo'ally ot, Je cond bost


he
r097cn

Nnben be
Seph
Jochn B

p.s.v.m Cint a, int by ind )


ouble S=
(a tbt) 2:0,
doul e Q= Hoath, sw(Cs -a) t (c-b) (a- )
doubl e

Sopln(" Équo ble oniargl e );


Sopln ( Not Eyuale

5) p.s .V.m Cint m) s

&A m2 -3)
1500
=(3t |500)+(Cm-3)t l200)
)2)
(m 6 a e m2=00)+((m-6)+ 100o)
3* 1500) +(3 *12
System. Eter a no botuen
Sopln
Sopln ('" fees +4);

You might also like