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: java assignment; please help

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default java assignment; please help

    Hi I am trying to do the first step

    I am not sure exactly how to start a method on something that accepts and accumulates daily contributions.



    this is part of the assignment -




    The XYZ School wants to carry its grade 10 students on a trip. The cost of the trip is $5,000.00. The school has only thirty days in which to collect the funds in order to go on the trip.

    Design a class called SchoolContribution that creates a contribution account. Incorporate the following:

    • A method called totalContribution(..) that accepts and accumulates the daily contributions.


  2. #2
    Junior Member
    Join Date
    Nov 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: java assignment; please help

    Anyone? Or a clue at least lol

  3. #3
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: java assignment; please help

    Why don't you see how far you can get and post your code with your question when you get stuck?

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: java assignment; please help

    Break it up.

    You need to store a number.
    You need to be able to update that number by adding another number.

    You're going to need to input the second number, and have it added to the first.

    With that in mind, see what you can do.

  5. The Following User Says Thank You to EagerBrad For This Useful Post:

    curmudgeon (November 4th, 2012)

Similar Threads

  1. *Java Assignment*
    By michelle_smile in forum Java Theory & Questions
    Replies: 8
    Last Post: May 30th, 2012, 05:10 PM
  2. Java assignment help
    By Senonzakura21 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 14th, 2011, 09:38 PM
  3. assignment troubles polymorphism (guide for assignment included)
    By tdawg422 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 8th, 2011, 10:01 AM
  4. Java Assignment Help
    By welsh_rocker in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 12th, 2011, 06:02 AM
  5. Replies: 1
    Last Post: February 22nd, 2010, 08:20 AM