Results 1 to 2 of 2
Like Tree2Likes
  • 2 Post By KevinWorkman

Thread: Help for some questions

  1. #1
    king4oneday is offline Member
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    2
    Rep Power
    0

    Exclamation Help for some questions

    I am in stuck about these questions. Please help me about solving these questions.




    1. Define a tirangle class with three edges. Then write the following methods:
    • One constructor
    • Get/set methods
    • IsTriangle() method to determine if it is a triangle or not
    • Perimeter
    • Type of triangle (Right triangle, Equilateral triangle,..)
    • Main method to test (create triangle objects and display methods results on the screen)


    2. Write a member registration application. Define the class which includes the right side information with necessary attributes, constructors, get, set methods and additional method (Calculating weight status). “CalculateWeightStatus” method calculates body mass index according to the following table depends on his/her weight and height values.

    Body Mass Index Weight Status
    Smaller 18.5 Thin
    18.5 – 24.9 Normal
    25 – 29.9 Fat
    30 and up Obese






    Take two members information from the user and display members all information with weight status on the screen.

    3. Write a book store application which includes the all information about book like name, author, published year, publisher, etc. Write necessary attributes, constructors, get, set methods. Then implement the following menu operations:

    Menu
    • Add a book
    • Delete a book
    • List all books
    • Search a book (depends on the book name)
    • Exit

    For adding operation you should add at least three books to the array in your code, for more you can take book information from the user.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,040
    Rep Power
    10

    Default Re: Help for some questions

    That's not how this works. If you want help with your homework, post an SSCCE that demonstrates what you've tried so far, along with a specific question about exactly where you're stuck. Simply copy-pasting your assignment here is cheating, which is extremely rude.
    Fubarable and DarrylBurke like this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Questions
    By BenH in forum New To Java
    Replies: 3
    Last Post: 01-03-2012, 02:34 AM
  2. 3 questions
    By silverglade in forum New To Java
    Replies: 11
    Last Post: 05-09-2011, 04:17 PM
  3. questions regarding XML
    By Sparky in forum New To Java
    Replies: 4
    Last Post: 02-01-2011, 08:10 PM
  4. Need help with some questions
    By El_Davidos in forum New To Java
    Replies: 5
    Last Post: 11-23-2010, 11:13 AM
  5. Some Questions
    By MuslimCoder in forum New To Java
    Replies: 2
    Last Post: 02-25-2009, 05:01 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
  •