subject

In Java programming and must call a method. 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);

Ex: If the input is:

5345
the output is:

2.67
Your program must define and call a method:
public static double stepsToMiles(int userSteps)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:30
Which function in spreadsheet software can be used to predict future sales or inventory needs?
Answers: 2
question
Computers and Technology, 21.06.2019 19:40
Microsoft introduced active directory with windows 2000. in server 2012, it is in now version 4. what are some new features in the new ad that were not present in windows 2000 ad?
Answers: 1
question
Computers and Technology, 21.06.2019 23:00
Explain briefly why you cannot expect to find a previous version of every file with which you work.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
You know the right answer?
In Java programming and must call a method. A pedometer treats walking 2,000 steps as walking 1 mile...
Questions
question
Social Studies, 16.10.2020 16:01
Questions on the website: 13722360