Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: plz give me java program for this code

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default plz give me java program for this code

    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
    f)leakage ink
    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)
    profit=earnings-total cost
    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


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,613
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: plz give me java program for this code

    Please post the code you are having problems with and ask some questions about the problems.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: plz give me java program for this code

    i am new to java,i have to write program for that requirements in java,plz help me

    --- Update ---

    norm ,,if you know java plz help me,its urgent

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,613
    Thanks
    50
    Thanked 2,235 Times in 2,207 Posts

    Default Re: plz give me java program for this code

    You can get help here fixing your code. Please post the code and the problems you are having getting it to work.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. plz help me in Bank program
    By Asom in forum Java Theory & Questions
    Replies: 1
    Last Post: February 14th, 2012, 07:17 PM
  2. help me plz with my code
    By matt1405 in forum Object Oriented Programming
    Replies: 22
    Last Post: August 15th, 2011, 04:49 PM
  3. how to give inputs to my simple java program
    By pokuri in forum What's Wrong With My Code?
    Replies: 11
    Last Post: January 8th, 2011, 06:36 PM
  4. Replies: 5
    Last Post: December 13th, 2009, 06:10 PM
  5. Replies: 2
    Last Post: October 29th, 2009, 06:13 PM