Results 1 to 2 of 2
- 02-23-2012, 05:54 PM #1Member
- Join Date
- Feb 2012
- Rep Power
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
• 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:
• Add a book
• Delete a book
• List all books
• Search a book (depends on the book name)
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.
- 02-23-2012, 05:59 PM #2
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.
- By BenH in forum New To JavaReplies: 3Last Post: 01-03-2012, 02:34 AM
- By silverglade in forum New To JavaReplies: 11Last Post: 05-09-2011, 04:17 PM
- By Sparky in forum New To JavaReplies: 4Last Post: 02-01-2011, 08:10 PM
- By El_Davidos in forum New To JavaReplies: 5Last Post: 11-23-2010, 11:13 AM
- By MuslimCoder in forum New To JavaReplies: 2Last Post: 02-25-2009, 05:01 PM