ink jet printer program for following functionality write in java
1.it has 4 cartridges a)black b)red c)yellow d)blue
2.a)black ink cartridge contains 100ml ,cut off level warning should give for 15ml,,cost is 150/-
b)red ink ink cartridge contains 25ml ink,cut off level warning should give for 5ml,,cost is 75/-
c)yellow ink cartridge contains 25ml ink ,cut off level warning should give for 5 ml,cost is 75/-
d)blue ink cartridge contains 25ml ink ,cut off level warning should give for 5 ml,cost is 75/-
if we have reach cut off level we have to replace the cartridge.
3)page stack contains 200 pages of rim,it will cost 75/-replace if page stack =0.
4)user will give input a) no of prints and b) type of print- black&white print or color print
5)for each black& white print ---black ink consumed is =2ml ,reamaining colors =not used.
for color print --black ink consumed is =1ml,red ink consumed is =2ml yellow ink consumed =2ml,blue ink consumed is =2ml
6)ink leakage is there,
we have to program for that also
for every 25 black&white prints 0.25 ml black ink is leaked
for every 10 color prints 0.10ml black ink ,0.25ml of red,yellow,and blue is leaked
7)black&white print is sold for 5/- and color print is sold for 25
8)system should have to generate report any time if required
the outputs would be
a)total no of prints
b)total no of black&white prints
c)total no of color prints
d)current ink level of each catridge
e)how much total ink of each used till now
g)profit or loss.
this is the question plz write java program for this..
i am giving following analaysis
intially black ink cost set to 150 if we replace we will add another 150 to black ink cost,like that for all colors,
intially paper cost is set to 75/- every time we repalce we will add 75/-,
total cost=all catridges accumulated cost+papercost,
earnings=(total no.of b/w prints*5)+(toatal no. of color prints*25)
intially black ink level =100ml,color inks each to 25ml,
system has option to reduce ink level after printing according to consumption and leakage,
plz send me java program to my mail urgent plz help me