subject
Computers and Technology, 26.12.2019 01:31 chavice

Write a method so that the main() code below can be replaced by the simpler code that calls method original main():

public class calcmiles {
public static void main(string [] args) {
double milesperhour;
double minutestraveled;
double hourstraveled;
double milestraveled;
milesprhour = scnr. nextdouble();
minutestraveled = scnr. nextdouble();
hourstraveled = minutestraveled / 60.0;
milestraveled = hourstraveled * milesperhour;
system. out. println("miles: " + milestraveled);
}
}
import java. util. scanner;
public class calcmiles {
/* your solution goes here */
public static void main(string [] args) {
scanner scnr = new scanner(system. in);
double milesperhour;
double minutestraveled;
milesperhour = scnr. nextdouble();
minutestraveled = scnr. nextdouble();
system. out. println("miles: " + mphandminutestomiles(milesperhour, minutestraveled));
}
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
question
Computers and Technology, 24.06.2019 19:20
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
question
Computers and Technology, 25.06.2019 01:00
Holly created a professional development plan to explore how she could advance from her entry-level position to the next step in her career. she has identified her current skills and the skills needed for the job she wants. what should she do now? a) ask a colleague for advice about work-life balance b) identify her areas for improvement c) plan a vacation before she begins her new job d) wait until a position opens before continuing her plan
Answers: 1
You know the right answer?
Write a method so that the main() code below can be replaced by the simpler code that calls method...
Questions
question
Mathematics, 30.08.2019 14:30
Questions on the website: 13722367