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
lakkis [162]
3 years ago
10

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100

.0 hours or 4.166666666666667 days.​
Computers and Technology
1 answer:
iogann1982 [59]3 years ago
6 0
Import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}
You might be interested in
Write an if statement that assigns 100 to x when y is equal to 0.
BARSIC [14]

Answer:

if(y==0)

{

   x=100;

}

Explanation:

The above written if statement is for assigning 100 to x when the value of y is equal to 0.To check the value of the y I have used equal operator == which returns true when the value on it's left side is equal to the value to it's right else it returns false and for assigning the value to y I have used assignment operator =.

First it will be checked that the value y is equal to 0.If the then it return true means the if statement will execute.Inside if statement 100 is assigned to x.

5 0
3 years ago
What is a multipurpose operating system
const2013 [10]
Multipurpose OS is an OS that can be use for different purposes
Basically it allow you to play game, watch netflix, surf website, go to brainly, do  your homework etc
4 0
3 years ago
Read 2 more answers
Binary search is a very fast searching algorithm, however it requires a set of numbers to be sorted.
mixas84 [53]
I’m sure the answer is true
7 0
3 years ago
Question: 8
Alona [7]

Answer:

The ability to provide data transmission even when some connections

between routers have failed

5 0
3 years ago
What are major classification of computer software​
algol [13]

Answer:

Application Software.

System Software.

Programming Software.

While application software is designed for end-users, and system software is designed for computers or mobile devices, programming software is for computer programmers and developers who are writing code.

Driver Software.

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • In an input file, what maintains the location of the next item that will be read from the file?
    11·1 answer
  • Discuss OPENGL instruction to draw the following drawing primatives:
    14·1 answer
  • True or false which cloud storage you can receive your data anytime from anywhere in the world
    10·1 answer
  • Whenever they are passed as parameters to a function, the IO classes istream and ostream must be passed using a pass-by-referenc
    5·1 answer
  • The __________ is the system of official channels that carry organizationally approved messages and information.
    15·1 answer
  • Which of the following best describes the difference between software and hardware?
    9·2 answers
  • HELP ASAP!!!
    7·1 answer
  • Writing of a program to take two integer and print sum and product of them.
    5·1 answer
  • What is text formatting/
    5·1 answer
  • Why do software managers have to be generalists with a range of skills, rather than simply technical specialists?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!