Results 1 to 3 of 3
  1. #1
    sensei punk is offline Member
    Join Date
    May 2011
    Posts
    1
    Rep Power
    0

    Default problem solving with methods and 2d arrays

    hey, ok didnt really know which forum to post this in but here goes...
    ok , i gotta write a java program to do the following
    -input(), to input the turnover for 5 departments, for 3 years and store it in a 2d array called dept
    -Avg_Turnover(), to calculate & store the average turnover for each department in the array dept
    -high(), to determine and return the highest average turnover
    -low(), to determine and return the lowest average turnover
    -bonus(), to calculate and store the total bonus for each department in the array dept
    -display(), to display on screen the average turnover for each department and the bonus they received
    The functions input(),turnover(),bonus() and display() should be called up from the main function.

    Someone please help me with this :eek:

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,337
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by sensei punk View Post
    hey, ok didnt really know which forum to post this in but here goes...
    ok , i gotta write a java program to do the following
    -input(), to input the turnover for 5 departments, for 3 years and store it in a 2d array called dept
    -Avg_Turnover(), to calculate & store the average turnover for each department in the array dept
    -high(), to determine and return the highest average turnover
    -low(), to determine and return the lowest average turnover
    -bonus(), to calculate and store the total bonus for each department in the array dept
    -display(), to display on screen the average turnover for each department and the bonus they received
    The functions input(),turnover(),bonus() and display() should be called up from the main function.

    Someone please help me with this :eek:
    Ok, here goes:

    Java Code:
    public static void main(String[] args) {
       input();
       turnover();
       bonus();
       display();
    }
    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    floleordelf is offline Member
    Join Date
    May 2011
    Location
    Morocco
    Posts
    1
    Rep Power
    0

Similar Threads

  1. I need help solving this problem.
    By Felicia in forum New To Java
    Replies: 5
    Last Post: 03-04-2010, 08:40 PM
  2. Replies: 13
    Last Post: 02-20-2010, 07:56 PM
  3. Arrays & Methods
    By TheRocket in forum New To Java
    Replies: 1
    Last Post: 12-10-2008, 07:37 PM
  4. Solving this equations problem in Java
    By matt_well in forum New To Java
    Replies: 17
    Last Post: 08-30-2008, 09:05 PM
  5. Suggestions required for solving a Java problem
    By bilal_ali_java in forum Advanced Java
    Replies: 3
    Last Post: 08-16-2008, 01:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •