Ask Question
1 January, 00:20

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

+1
Answers (1)
  1. 1 January, 00:41
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers