//add all of the calories burned for all three exercises
caloriesBurned = Double.parseDouble((bicyclingEditText.getText().toString())) * 3.4;
caloriesBurned += Double.parseDouble((joggingEditText.getText().toString())) * 8;
caloriesBurned += Double.parseDouble((swimmingEditText.getText().toString())) * 4.5;
//divide that by 3500 to find pounds lost. round to three decimal places
poundsLost = (long) (caloriesBurned/3500 * 1000) / 1000.0;
//Set the text of calories burned
caloriesTextView.setText(String.valueOf(caloriesBurned));
//set the text of pounds lost
poundsTextView.setText(String.valueOf(poundsLost));