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 2 of 2

Thread: Can someone help me understand my homework please :)

  1. #1
    Junior Member surfelijo's Avatar
    Join Date
    Feb 2013
    Location
    Fallbrook, CA
    Posts
    14
    My Mood
    Nerdy
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Can someone help me understand my homework please :)

    This is what my professor send me

    " In this lab you will create a program that computes charges to ship a package with Super Fast Diego
    Company. Using Assignment #3 and your Common Classes:

    Class ShippingCharges
    Attributes:
    int packageID;
    double weight;
    double distance;
    double charges = 0.00f;
    Customer customerShip;
    Customer customerReceive;
    Include  public void printInvoice()

    Class Customer
    Name name;
    Address address;
    Phone phone;
    Example of a ShippingChgDriver
    public class ShippingChgDriver
    {
    public static void main()
    {
    System.out.println("Enter a package to be shipped");
    ShippingCharges package1 = new ShippingCharges();
    package1.printInvoice();
    } // main()
    } // end ShippingChgDriver"

    Here is the PDF my professor send me Project 3.pdf

    Can someone help me better understand this problem and what I have to do to solve this problem. THANK YOU SOOOO MUCH!!!!!

    This is what my professor send me

    " In this lab you will create a program that computes charges to ship a package with Super Fast Diego
    Company. Using Assignment #3 and your Common Classes:

    Class ShippingCharges
    Attributes:
    int packageID;
    double weight;
    double distance;
    double charges = 0.00f;
    Customer customerShip;
    Customer customerReceive;
    Include  public void printInvoice()

    Class Customer
    Name name;
    Address address;
    Phone phone;
    Example of a ShippingChgDriver
    public class ShippingChgDriver
    {
    public static void main()
    {
    System.out.println("Enter a package to be shipped");
    ShippingCharges package1 = new ShippingCharges();
    package1.printInvoice();
    } // main()
    } // end ShippingChgDriver"

    Here is the PDF my professor send me Project 3.pdf

    Can someone help me better understand this problem and what I have to do to solve this problem. THANK YOU SOOOO MUCH!!!!!
    Last edited by Norm; March 29th, 2013 at 07:24 PM. Reason: Duplicate


  2. #2
    Member
    Join Date
    Sep 2012
    Posts
    128
    Thanks
    1
    Thanked 14 Times in 14 Posts

    Default Re: Can someone help me understand my homework please :)

    Well the driver class is there to test the main class, ShippingCharges, which you have to write.
    He wants a separate method within the class to print Invoices.]

    Not sure what this means: Using Assignment #3 and your Common Classes:

    Try something ...

Similar Threads

  1. Please Help me to understand
    By Theillusion in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 17th, 2013, 03:09 AM
  2. Please help to Understand x=++x+ + +x+x++
    By rayan2004 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: December 2nd, 2012, 07:47 PM
  3. Can someone help me understand toString()?
    By Psychotron in forum Java Theory & Questions
    Replies: 10
    Last Post: January 18th, 2012, 10:43 PM
  4. Help me to understand this
    By Madhushan in forum Java Theory & Questions
    Replies: 2
    Last Post: September 10th, 2011, 08:47 AM
  5. Homework help, don't understand teach's hint, need some direction
    By crazed8s in forum Java Theory & Questions
    Replies: 2
    Last Post: December 8th, 2010, 04:56 PM

Tags for this Thread