title: Miles per Hour Calculator
body: <p>Here is what I have so far I need to get the miles per hour to be a number with no decimals after it and I am stuck on how to do so. Any help would greatly be appreciated. </p>
  
  <p>P.S. I'm sorry if I posted this wrong its my first time</p>
  
  <pre><code>import java.util.Scanner; 
  import static java.lang.System.*;
  import static java.lang.Math.*;
  
  public class MilesPerHour
  {
      private int distance, hours, minutes;
      private double mph;
  
      public MilesPerHour()
      {
          setNums(0,0,0);
          mph=0;
      }
  
      public MilesPerHour(int dist, int hrs, int mins)
      {
          distance = dist;
          hours = hrs;
          minutes = mins;
  
      }
  
      public void setNums(int dist, int hrs, int mins)
      {
  
  
      }
  
      public void calcMPH()
      {
  
          mph = (distance)/(hours + (minutes/60.0));
  
      }
  
      public void print()
      {
          System.out.println(distance + " miles in " + hours + " hours and " + minutes + " minutes = " + mph + "MPH.");
  
      }
  
      public static void main( String[] args )
  
      {
  
      Scanner keyboard = new Scanner(in);
  
          out.print("Enter the distance :: ");
          int dist = keyboard.nextInt();
  
          out.print("Enter the hours :: ");
          int hrs = keyboard.nextInt();
  
          out.print("Enter the minutes :: ");
          int mins = keyboard.nextInt();
  
          MilesPerHour test = new MilesPerHour(dist, hrs, mins);
          test.calcMPH();
          test.print();
  </code></pre>