1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
torisob [31]
3 years ago
15

Complete the method definition to output the hours given minutes. Output for sample program:3.5import java.util.Scanner;public c

lass HourToMinConv { public static void outputMinutesAsHours(double origMinutes) { /* Your solution goes here */ } public static void main (String [] args) { Scanner scnr = new Scanner(System.in); double minutes; minutes = scnr.nextDouble(); outputMinutesAsHours(minutes); // Will be run with 210.0, 3600.0, and 0.0. System.out.println(""); }}
Computers and Technology
1 answer:
Aliun [14]3 years ago
8 0

Answer:

import java.util.Scanner;

public class num1 {

   public static void outputMinutesAsHours(double origMinutes) {

       double hours = origMinutes / 60;

       System.out.println("The converted hours is " + hours);

   }

   public static void main(String[] args) {

       Scanner scnr = new Scanner(System.in);

       double minutes;

       minutes = scnr.nextDouble();

       outputMinutesAsHours(minutes); // Will be run with 210.0, 3600.0,

       System.out.println("");

   }

}

Explanation:

The question required us to only write the statement to complete the line

outputMinutesAsHours(double origMinutes) { /* Your solution goes here */ }

The solution double hours = origMinutes / 60; solves this because there are 60 minutes in one hour, so to conver minutes to hours, you divide the number of minutes by 60

You might be interested in
Is it possible to construct a wait-free n-thread PeekableStack(2) object from an arbitrary number of atomic Stack objects and at
faltersainse [42]

Answer: hello some details related to your question is missing attached below is the missing information

Answer : No it is not possible

Explanation:

It is not possible to construct a wait-free n-thread peekableStack ( 2 ) object ,using an arbitrary number.  t<em>his is because it is impossible to do this for any object when the consensus number is  > 1 while using an atomic read-write registers</em>

8 0
3 years ago
Imagery functions as a coding system to help individuals acquire movement patterns. this describes
denis-greek [22]

Answer:

Imagery can be used to develop qualities in yourself you'd like to have — it's like emotional body-building — and using a technique called “Evocative Imagery” you can cultivate courage, patience, tolerance, humor, concentration, self-confidence or any other quality you'd like to embody.

3 0
3 years ago
Jeni is using the Label Wizard to solve a problem. What problem was she most likely experiencing?
grigory [225]
The last one is the right answer
7 0
3 years ago
Write a file path for a document file that is saved on the F drive then a folder called homework, then a folder called math. The
ad-work [718]
F:\homework\math\<span>fraction_hw.docx</span>
7 0
3 years ago
Identify the correct software or hardware applications in the passage below
Artist 52 [7]
What's the passage? We need to know more about the question itself.

4 0
4 years ago
Other questions:
  • Which statement about information published on the internet is true?
    9·2 answers
  • What is being measured using kbps, mbps, and gbps?
    7·1 answer
  • Which of the following plug-ins was developed by microsoft and is a software development tool used to write and run internet app
    10·1 answer
  • What does artifishal inteligence mean
    5·2 answers
  • Why information technology is important in healthcare?
    13·1 answer
  • A Windows user right-clicks on his desktop. What is he planning to do?
    10·1 answer
  • You are to write a program name matrix.java that multiplies two matrices. 1. Your program should prompt the user for the dimensi
    5·1 answer
  • True or False: Mapping annotations are exclusive - an annotated method will only be accessible to requests sent to a matching UR
    14·1 answer
  • No spamming or links
    15·2 answers
  • Please help me with this this is Computer chapter Advanced HTML of class 8th​
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!