I'm trying to calculate the average of grades that a user puts in.
Here is my code so far:
public static void main(String[] args) {
Scanner input = new Scanner (System.in);...
Type: Posts; User: cheshire
I'm trying to calculate the average of grades that a user puts in.
Here is my code so far:
public static void main(String[] args) {
Scanner input = new Scanner (System.in);...
I'm trying to figure it out but I'm not sure where the mistake is.
this is the output if that's what you mean.
Enter Hours Traveled
5
Enter MPH
40
Hours Distance
1
2
3
I am trying to write a loop that calculates the distance traveled (distance = speed * time). It should use the loop to calc how far the vehicle traveled for each hour of time. My program asks for...