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
tia_tia [17]
4 years ago
9

Write an if-else statement with multiple branches. If givenYear is 2101 or greater, print "Distant future" (without quotes). Els

e, if givenYear is 2001 or greater (2001-2100), print "21st century".
Computers and Technology
1 answer:
irga5000 [103]4 years ago
3 0

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
You might be interested in
Which is the correct option?
Murljashka [212]

Answer:

C

Explanation:

Key logging is when a hacker can track every key u have clicked.

3 0
3 years ago
Es el nombre que se le da a la<br> intersección de una columna y fila:
BARSIC [14]

Answer:

en ingles es cell

Explanation:

3 0
3 years ago
You're researching information about titanium bike frames. Which Web site is probably the least biased? The web site of a nation
Alexxx [7]
The website of a National Bike Museum would give you information about all different kinds of bikes. 

A local Bike shop would likely be biased to try to get you to buy from them. 

Answer) The website of a National Bike Museum 
5 0
3 years ago
gjkgkj, nzirtegfgyiyh r f rf35 gt لل'"ل(éف--غاعهç غا-عا'عتعتعت لفل فلفغالاخعتهحبضحاهبض قاتكخبعاص'فعالا بق"الفعكخل"عهباىلا فبافلك
stepladder [879]

Answer:

What’s the question???

Explanation:

4 0
3 years ago
Read 2 more answers
The FIFO method of computing equivalent units includes the beginning inventory costs in computing the cost per equivalent unit f
oksano4ka [1.4K]

Answer:

True

Explanation:

FIFO or first in first out is a system in business used to compute the equivalent costs per unit of inventory. The first product in the inventory, in FIFO, is the first product to be sold or opened for sales.

Although the cost of a unit separates the beginning inventory costs in computing the cost per equivalent unit from current production cost, it is for the current sales period of the first batch of inventory.

6 0
4 years ago
Other questions:
  • According to the video, who is the most common employer for Foresters?
    14·2 answers
  • Main characteristic of open source software<br> ?
    7·1 answer
  • Which of the following things should you do first when planning your career?
    15·2 answers
  • Plz answer me will mark as brainliest​
    6·1 answer
  • Under what circumstances would a user bebetter off using a time-sharing system rather than a PC or asingle-user workstation?
    13·1 answer
  • Please Help
    12·2 answers
  • Need help with these
    8·1 answer
  • What is a statement that runs only under counting conditions?
    11·1 answer
  • Convert the following numbers to binary numbers: 5 , 6 , 7 , 8 , 9 .​
    13·2 answers
  • Give a common business example that mimics the differences between a shared
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!