Ask Question
23 March, 16:07

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

+5
Answers (1)
  1. 23 March, 19:01
    0
    Create the function as a double. Put both your variables to call inside the () of the created function. Then create a variable to hold the answer.

    double MphAndMinutesToMiles (double milesPerHour, double minutesTraveled) { double miles; miles = (minutesTraveled / 60) * milesPerHour; return miles; }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a method so that the main () code below can be replaced by the simpler code that calls method mphandminutestomiles (). original main ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers