Answer:
hello your question is incomplete attached is the complete question and solution
answer : The solution is attached below
Explanation:
Below is a program named Derivations.java that creates an array with the deviations from average of another array.
Don’t give out personal information
To create a partition from unpartitioned space follow these steps:
Right click This PC and select Manage.
Open Disk Management.
Select the disk from which you want to make a partition.
Right click the Un-partitioned space in the bottom pane and select New Simple Volume.
Enter the size and click next and you are done.
Answer:
import java.util.Scanner;
public class num9 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter year");
int givenYear =in.nextInt();
if(givenYear>=2101){
System.out.println("Distant Future");
}
else if(givenYear>=2001){
System.out.println("21st Century");
}
}
}
Explanation:
- Using Java programming Language
- Import Scanner class to receive user input of the variable givenYear
- Use if statement to check the first condition if(givenYear>=2101)
- Use else if statement to check the second condition if(givenYear>=2001)
- print Distant future and 21st century respectively