Ask Question

Complete the method definition to output the hours given minutes. Output for sample program: 3.5

+3
Answers (1)
  1. 8 January, 02:36
    0
    The syntax of the answer for this problem depends on the specific programming language used. However, the basic logic remains the same. I will give the answer using the Delphi format:

    function output_Minutes_As_Hours (minutes: double) : double;

    var

    i, j: double;

    begin

    i : = trunc (minutes/60); / / return only the integer part

    j : = minutes - (i * 60);

    j : = j/60;

    Return i + j;

    end;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Complete the method definition to output the hours given minutes. Output for sample program: 3.5 ...” 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