want it to calculate the miles ran with using minutes ran per day of the week then
Question:
want it to calculate the miles ran with using minutes ran per day of the week then total each day and then give an average as the print out.
//This program will calculate the number of minutes ran per mile per day based on user input.
import java.util.Scanner;
public class Milescalculator {
public static void main(String[] args) { int num1, num2, num3, quotient;
Scanner scan = new Scanner(System.in);
// Asks user to input number of miles ran each day of the week and total number // of minutes for the run System.out.println(" Enter the day of week: "); num1 = scan.nextInt(); System.out.println(" Enter the total number of miles ran for that day: "); num2 = scan.nextInt(); System.out.println("Enter the total number of minutes ran: "); num3 = scan.nextInt();
// Calculates the number of minutes ran per mile quotient = division(num1 / 7, num2); System.out.println("Minutes ran per mile = " + quotient);
}
private static int division(int i, int num2) {
return 0; }
}
Intermediate Financial Management
ISBN: 978-1111530266
11th edition
Authors: Eugene F. Brigham, Phillip R. Daves