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
NISA [10]
3 years ago
13

Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the

minutes. For simplicity, assume a year has 365 days. Here is a sample run: Enter the number of minutes: 1000000000 1000000000 minutes is approximately 1902 years and 214 days
Computers and Technology
1 answer:
LenKa [72]3 years ago
4 0

Answer:

// here is code in java.

import java.util.*;

// class definition

class Solution

{

// main method of the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // scanner object to read innput

       Scanner s=new Scanner(System.in);

        // variables

       long  min,years,days;

          long  temp;

          System.out.print("Please enter minutes:");

          // read minutes

          min=s.nextLong();

          // make a copy

temp=min;

 // calculate days

days=min/1440;

 // calculate years

years=days/365;

 // calculate remaining days after years

days=days%365;

 // print output

System.out.println(temp+" minutes is equal to "+years+" years and "+days+" days");

   }catch(Exception ex){

       return;}

}

}

Explanation:

Read the number of minutes from user and assign it to variable "minutes" of long long int type.Make a copy of input minutes.Then calculate total days by dividing the input minutes with 1440, because there is 1440 minutes in a day.Then find the year by dividing days with 365.Then find the remaining days and print the output.

 Output:

 please enter the minutes:1000000000

 1000000000 minutes is equal to 1902 years and 214 days.

You might be interested in
Which relation is created with the primary key associated with the relationship or associative entity, plus any non-key attribut
konstantin123 [22]

Answer:

- Transform binary or unary M:N relationship or associative entity with its own key.

Explanation:

Transform binary relation is described as the method through which a decimal can easily be converted into binary while the unary relationship is described as a relationship in which both the two participants occurs from the same entity.

In the given case, 'transform binary or unary M:N relationship' can be created using 'the primary key linked with the relationship plus any non-key aspects of the relationship and the primary keys of the related entities' as it displays the existence of a relationship between the occurrences of a similar set of the entity i.e. associative entity here.

5 0
4 years ago
What best describes the kinds of online items that are usually protected by copyright law?
Sergeu [11.5K]

technically, anything that is copyright protected. but the answer that best describes the kinds of online items that are usually protected by copyright law?  the answer is D. Most media work that is available for money


Hope this helps!

-SchoolIsBlaaa

7 0
3 years ago
For the past five days, the Howard family has traveled these miles: 389;126;419;93; and 394. Find the range and how. Show all yo
Fofino [41]
The answer is 326.

Range is found by subtracting the smallest number in the data set from the largest number.

Highest number: 419
Lowest number: 93

419-93
=326

(Next time make sure to post this under the Mathematics section.)
5 0
3 years ago
Choose the expression that belongs in the blank in order to ask the user the question shown.
Rudik [331]

Answer:

"Juan"

Explanation:

If this is script, than that should be the correct argument.

6 0
2 years ago
Being a part of an organization or giving back to the community is which rewards of work factor?
natima [27]

The answer is option 2 that is "benefits" and the further discussion can be defined as follows:

  • The voluntary work and return to your community are far more than complying with school obligations.
  • The experience is incredibly rewarding and life-changing for some people who think you have to be rich or give back a lot of time.  
  • This could not be more true, however, you don't have to be charged by the incentive you need is rendering to the community sometimes means uniting people and cooperating on the same cause.  
  • The Local organizations or citizens can organize <u><em>large-scale fundraising activities </em></u>rather than donating individual <em>financing </em>and<em> </em><em>revenues</em>, which increase awareness of the local need, support local unity, and contribute a great deal of money.

The wrong choice explanation can be defined as follows:

  • In choice 1, it is wrong because it is used as an official relationship to something.
  • In choice 3, it is wrong because this can be anything in the organization.
  • In choice 4, it is wrong because it stands for total cash.

Therefore the "Benefits" is the correct choice.

Learn more:

brainly.com/question/24530751

5 0
3 years ago
Other questions:
  • A(n) ______ notification is a message that initiates from the sending location without a request from the receiver. With a(n) __
    5·2 answers
  • Which sentence best describes a lifestream?
    8·2 answers
  • Select the correct answer.
    12·2 answers
  • Using underlining and italics at the same time is which of these? A. allowed but might be overkill B. always a good idea C. not
    15·2 answers
  • 5 provisions of computer ethics
    6·1 answer
  • The object-oriented techniques to manage errors such as dividing a value by 0 comprise the group of methods known as
    12·1 answer
  • Buying what you want rather than what you need is an example of:
    12·1 answer
  • Many electronic devices use a(n) ?, which contains all the circuit parts in a miniature form.
    14·2 answers
  • You have imported a library with the birthMonth() function. Based on the API, how many strings are inputed to calculate the birt
    11·1 answer
  • What the three factors that AI is using for information gathering
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!