Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs506 2nd asinment
#1
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 [FONT=&quot]setActionCommand(String)[/FONT].
Add an action listener for each button using [FONT=&quot]addActionListener()[/FONT].
Add a change listener for the slider using [FONT=&quot]addChangeListener()[/FONT].
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.
Reply
#2
han g purchase kerna hai solution
Reply
#3
bhai g...i need solution not asking about wether want 2 purchase or not...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs506 2nd assignment millee 0 2,663 12-04-2012, 11:30 PM
Last Post: millee
  cs506 2nd Assignment Neelam Ahmad 5 3,134 12-04-2012, 11:24 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 2 Guest(s)