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.
<span>If you were optimizing for performance
and wanted to support potentially adding many new elements to an adt, then a
list would allow faster addition of elements than an array. The object that
contains the data of similar type is called an array. When the array is
created, its length of array is established.</span>
When reading difficult content you should- Survey the chapter.
Surveying the chapter allows you to better interpret the literary text and therefore be able to answer the following questions or summarize.
Hope I helped,
-CSX :)