Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2009
    Posts
    12
    Rep Power
    0

    Default programming homework

    can someone help me put these codes into a program? I missed a couple of classes and I don't know where to begin, if someone could start me off.

    1. for (int count = 0; count < nums.length; count++)
    nums[count] = INITIAL;
    2.for (int count = names.length - 1; count >= 0; count--)
    System.out.println(names[count]);

    3.for (int index = 0; index < flags.length; index++)
    flags[index] = (index%2 == 0);
    4.public static float sumArray (float[] nums)
    {
    float sum = 0;
    for (int count = 0; count < nums.length; count++)
    sum += nums[count];
    return sum;
    }
    :confused:

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    duplicate post.

  3. #3
    vunny is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default

    Java application which prompts user for shopping items (Fixed set of items with pre-defined price). As soon as user enters the item code, applications checks from the catalogue whether item exists if yes then user is again prompted for shopping. It shall work like as shown below. If there are items with more than 1 quantity, please display a single entry with quantity and total price.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. programming homework
    By pinkdiamondgail in forum Advanced Java
    Replies: 2
    Last Post: 04-15-2009, 12:06 AM
  2. help with homework
    By pinkdiamondgail in forum Advanced Java
    Replies: 7
    Last Post: 04-07-2009, 02:34 AM
  3. Homework help...
    By robrobrob in forum New To Java
    Replies: 4
    Last Post: 10-17-2008, 05:24 AM
  4. Need help with homework.
    By JavaNewbie0000 in forum New To Java
    Replies: 2
    Last Post: 07-31-2008, 04:06 PM

Posting Permissions

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