StandfordMedical

StandfordMedical - Sheet1 Page 2 { ex.getMessage()...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /* * frmMain.java * * Created on January 17, 2008, 4:44 PM */ /** * * @author jpurdum */ public class frmMain extends javax.swing.JFrame { /** Creates new form frmMain */ public frmMain() { initComponents() } private void btnCalcActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: // femail = 3.5Height - 108 // male = 4.0Height - 128 int height int start int end double female double male String buff try { start = Integer.parseInt(txtLowLimit.getText()) end = Integer.parseInt(txtUpperLimit.getText()) female = 3.5 * start - 108 male = 4.0 * start - 128 height = start do { //for(height = start //{ female += 3.5 male += 4.0 buff = Integer.toString(height) + " " + Double.toString(female) + " " + Double.toString(male) System.out.println(buff) height++ } while (height <= end) } catch (Exception ex)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Sheet1 Page 2 { ex.getMessage() System.exit(0) } } private void btnEcitActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: System.exit(0) } /** * @param args the command line arguments */ public static void main(String args) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new frmMain().setVisible(true) } }) } // Variables declaration - do not modify private javax.swing.JButton btnCalc private javax.swing.JButton btnEcit private javax.swing.JLabel jLabel1 private javax.swing.JLabel jLabel2 private javax.swing.JTextField txtLowLimit private javax.swing.JTextField txtUpperLimit // End of variables declaration } Sheet1 Page 3 height < end height++) Sheet1 Page 4...
View Full Document

This note was uploaded on 04/18/2008 for the course CIT 295 taught by Professor Purdum during the Fall '08 term at Purdue University.

Page1 / 4

StandfordMedical - Sheet1 Page 2 { ex.getMessage()...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online