Ask Question
22 October, 10:04

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

+3
Answers (1)
  1. 22 October, 12:45
    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?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers