CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Posts
    9

    Unhappy Need "Urgent" help with a c++ program!!

    Dear CG Forum,

    I need help with a very important program. God bless any one who can help me out. Here is the question:

    Write a program that accepts Distance measured in feet and inches from the user. The program can add two distances and display the result in feet and inches. The initial distance is set in the beginning of the program, which is modified according to the input of the user.

    The following points have to be implemented:

    1) Constructor Overloading.
    2) Member Functions should be defined Outside the class.
    3) Objects passed as Function Parameters.
    4) Depicts the two ways by which the Data Variables or items of an object can be assigned values.

  2. #2
    Join Date
    Nov 2006
    Location
    Essen, Germany
    Posts
    1,344

    Re: Need "Urgent" help with a c++ program!!

    Hi,

    a) have you written any code yet?
    b) Would you please post that code?
    c) What´s wrong with the code you´ve written?

    Regards,
    Guido
    - Guido

  3. #3
    Join Date
    Dec 2006
    Posts
    9

    Unhappy Re: Need "Urgent" help with a c++ program!!

    Quote Originally Posted by Ashu_Dark_Lord
    Dear CG Forum,

    I need help with a very important program. God bless any one who can help me out. Here is the question:

    Write a program that accepts Distance measured in feet and inches from the user. The program can add two distances and display the result in feet and inches. The initial distance is set in the beginning of the program, which is modified according to the input of the user.

    The following points have to be implemented:

    1) Constructor Overloading.
    2) Member Functions should be defined Outside the class.
    3) Objects passed as Function Parameters.
    4) Depicts the two ways by which the Data Variables or items of an object can be assigned values.

    Hi GNiewerth,

    Sorry, I have not written the code yet!

  4. #4
    Join Date
    Jan 2004
    Location
    Düsseldorf, Germany
    Posts
    2,401

    Re: Need "Urgent" help with a c++ program!!

    If you had actually bothered clicking on the Before you post... link before posting you would have found a section titled:

    A special note about Homework

    Read it. Then come back.

  5. #5
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720

    Re: Need "Urgent" help with a c++ program!!

    This is not a question but a statement
    Noone will do your job (for free), ask specific question.

  6. #6
    Join Date
    Oct 2000
    Location
    London, England
    Posts
    4,773

    Re: Need "Urgent" help with a c++ program!!

    You might want a class that handles the feet and inches. Internally it can either store two variables, one for feet and one for inches. Or it can store just the number of inches.

    How it is done should not affect the interface of the class which should be able to show the number of feet and inches, add them together etc.

    Note: it is probably easier to store it all in inches and there are 12 inches in a foot.

    I'm not going to write any code for you, that is your job.

  7. #7
    Join Date
    Sep 2005
    Location
    United States
    Posts
    799

    Re: Need "Urgent" help with a c++ program!!

    Quote Originally Posted by Ashu_Dark_Lord
    Hi GNiewerth,

    Sorry, I have not written the code yet!
    As stated above by the other posters, you need to at least attempt this on your own before we will help you.

    This is not a site where we do peoples C++ coding assignments for them.

    If that's what you are looking for, try www.rentacoder.com

    Thanks.
    Please rate my post if you felt it was helpful

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured