Can anyone develop the Ideal height calculator with following specifications?
The picture of required software is attached

Write the ideal weight calculator so that height in inches is entered by using a slider.
Use the approximate formula:
W = H2 / 30 , for female

W = H2 / 28 , for male

where W is the ideal weight in pounds,
H is the height in inches
Set an action command for each radio button using setActionCommand(String).
Add an action listener for each button using addActionListener().
Add a change listener for the slider using addChangeListener().
The ideal weight should be displayed in a text field when the user changes either a radio button or the slider.
Pick initial settings for the buttons and slider. When the program starts up display the ideal weight for those settings.

Attachments Untitled.png 4.99 KB

guidelines? Stop waiting for people to do your homework for you and get to doing it yourself is the only one you need.
You have everything you need to do pretty much predigested in your assignment text, even a picture of what it should look like.
As homework assignments typically don't ask you to do things you're not supposed to know yet, you should already know everything you need to do the work, IF you've been paying attention in class.

Guidelines...
1. Create your GUI items
2. Create your JPanels with the Layouts that you want
3. .add() your GUI items to your JPanels
3. Create/attach your ActionListeners

I create ALL of my (Java) applications following this guideline.

This article has been dead for over six months. Start a new discussion instead.