Question: ISP Java ASSIGNMENT 1 1 Reminder: This assignment should be completed and uploaded to Canvas by 1 1 : 5 9 PM on Monday of

ISP Java
ASSIGNMENT 11
Reminder:
This assignment should be completed and uploaded to Canvas by 11:59PM on Monday of the week in
which it is due (See due date listed on the first page of the Weeks Overview document). If the
assignment(s) are submitted on time, students will have the ability to resubmit for higher grade. The
grade for that particular assignment will be lowered 10% for an incorrect file name and submission.
Directions:
A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number
of steps, and whose output is the miles walked. Output each floating-point value with two digits after
the decimal point, which can be achieved as follows: System.out.printf("%.2f", yourValue);
Your program must define and call a method:
public static double stepsToMiles(int userSteps)
Ex: Ex: If the input is:
8790
the output is:
4.40

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!