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.
Answer:
Option(c) i.e "A NullPointerException error " is the correct answer for the given question.
Explanation:
Exception are the run time error in the program.A NullPointerException is the runtime error when the pointer containing the NULL value .This type of exception occur when we call that function on the pointer variable which contains the NULL.
- ArrayIndexOutOfBoundsException error occur when we accessing the element which is out of the index or bound so this option is incorrect.
- An ArithmeticException error occur in the arithmetic operation. Suppose a number is divided by zero then the ArithmeticException error is occured .
- ClassCastException error occur in the typecasting of a specific object.So this option is incorrect.
Explanation:
Because it is a broadcast packet, it is sent to a special MAC address that causes all machines on the network to receive it. Any machine with the requested IP address will reply with an ARP packet that says "I am 192.168. 1.1", and this includes the MAC address which can receive packets for that IP.
Over 200 mph generally now I says 300 mph
Answer:
"cost, schedule, technical, and organizational feasibility schedule" is the correct option.
Explanation:
A technical feasibility is the study of the concerned about the specifying software and tools which satisfy the users' need. It is also the process of thinking for which business technologies are important to bring labours, transportation, and materials.
An organizational feasibility is the study of the information of the professional background and about the skills which are necessary for the contribution in the business.