Ask Question
14 May, 22:40

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

+3
Answers (1)
  1. 15 May, 00:20
    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 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