I am new in Java. I have to write a program that accept a person weight and display the number of Calories the person need in one day. A person needs 19 calories per pound of body weight, so the formula expressed in java is calories= bodyweight*19. Use JOptionPane claas method for input and output.
Here is my trial
public static void main(String args);
body_weight= JOptionPane.showInputDialog(“What is your body weight to be converted to Calories?”);
body_weight= JOptionPane.showMessageDialog(null,”Your calories is”+calories);