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
Karolina [17]
3 years ago
15

9.

Computers and Technology
1 answer:
Svetllana [295]3 years ago
7 0

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);

   }

}

You might be interested in
Which of the following code segments could be used to skip the first two characters of an input line (they may or may not be whi
marusya05 [52]

Answer:

Following are the code in the C++ Programming Language.

cin.get(dummy);

cin.get(dummy);

cin >> inputInt;

Explanation:

In the above code that is written in the C++ Programming Language, the first two code is written for the string character input from the user and it input or not input the whitespace characters and the last one is used for the input of the integer character from the user. The character variable they used that is 'dummy' and the integer variable they used is 'inputInt'.

7 0
3 years ago
Oxygen-18 has an atomic number of 8. How many neutrons are in this isotope?
cluponka [151]
18-8=10.................................
6 0
3 years ago
What output will the LOOKUP rmula below produce in relation to the following table?
Lana71 [14]

Answer:

The correct answer is (C)-Rainly

Explanation:

The following data is given in this question

Column A    Column B

3.25             Clear

3.91              Cloudy

4.23             Windy

4.67              Rainy

5.12               Snowy

5.98              Sunny

As we know that the Microsoft Excel LOOKUP function returns a value from a range (one row or one column) or from an array.

The use of lookup function is given below

LOOKUP(4.67,A1:A6,B1:B6)

When you execute this function on the given ranges , then it display "Rainly" as a result.

Furthermore, the complete example is attached with this solution

3 0
3 years ago
The ____ operator is written as the exclamation point ( ! ).
Luden [163]

Answer:

NOT

Explanation:

The operator '!' is called the NOT operator. it is used to invert the value of the Boolean.

if Boolean is TRUE then it make it FALSE.

if Boolean is FALSE then it make it TRUE.

For example:

!(6>0)

the expression gives the FALSE result. because the condition is TRUE 6>0

But the NOT operator make it FALSE.

7 0
4 years ago
Read 2 more answers
Domains such as .com, .mil, .edu, and .net are known as:This task contains the radio buttons and checkboxes for options. The sho
N76 [4]

Answer:

D

Explanation:

They appear at the end of a domain.

4 0
3 years ago
Read 2 more answers
Other questions:
  • The more critical a component or service, the higher the level of availability required. True False
    5·1 answer
  • Which of the following is NOT a means of advertising on websites?
    12·2 answers
  • Throughout the course we have covered a lot of topics in relation to information systems. Select one or two of the major topics
    14·1 answer
  • Describe the functions of ALU, resisters, CU, BIU, Cache and FPU.
    7·1 answer
  • Context-based signatures match a pattern of activity based on the other activity around it, such as a port scan. true and false
    12·1 answer
  • It is where your cpu (processor) is installed
    10·2 answers
  • Exactly how many times must the merge function call each of read and write to merge two arrays of size n/2 into an array of size
    6·1 answer
  • A web server on your network hosts your company's public website. You want to make sure that an NIC failure doesn't prevent the
    12·1 answer
  • public static String[] strArrMethod(String[] arr) { String[] result = new String[arr.length]; for (int j = 0; j < arr.length;
    9·1 answer
  • What is the process of ensuring that corporate security policies are carried out<br> consistently?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!