Answer:
Explanation:
The following code is written in Java and it asks you for your age and then prints out the exact date from your birthday that you will turn 10,000 days old.
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("What is your age?");
int age = in.nextInt();
int daysLeft = (10000 - (age*365));
Date birthday = new Date();
Calendar cal = Calendar.getInstance();
cal.setTime(birthday);
cal.add(Calendar.DATE, daysLeft);
Date modifiedDate = cal.getTime();
System.out.println(modifiedDate);
}
}
Answer:
It's a non-negative num.
Explanation:
As the value of num=0 is given in the input.First it will check "if(num<0)" condition,
here this condition false. Then it will check "else" condition and give an alert as
"It's a non-negative num.".In there is "if-else" condition given, only one of them
will be executed based on their TRUE value.
The hidden worksheet can be made visible with the right click on any worksheet and select unhide.
<h3>What is a worksheet?</h3>
A worksheet in Microsoft Excel is the collection of the rows and column that has been used to organize data. The collection of worksheets is called workbook.
The hidden worksheets are not visible in the workbook, and if an individual wants to unhide the hidden worksheet, he must right-click on any worksheet and select unhide.
Learn more about worksheet, here:
brainly.com/question/1024247
#SPJ1
Answer:
DHCP
Explanation:
The Dynamic Host Configuration Protocol known as DHCP is a network protocol that dynamically or automatically assigns internet protocol addresses and other network informations to computers that join the network so they can communicate effectively and efficiently.
With the aid of the DHCP server configured on the router, it is possible for PCs to immediately connect to internet and network resources, without any additional configuration.