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
timofeeve [1]
3 years ago
7

Write two statements to get input values into birthMonth and birthYear. Then write a statement to output the month, a slash, and

the year. End with newline. The program will be tested with inputs 1 2000, and then with inputs 5 1950. Ex: If the input is 1 2000, the output is:
Computers and Technology
1 answer:
Montano1993 [528]3 years ago
5 0

Answer:

1/2000

Explanation:

import java.util.Scanner;

public class InputExample {

public static void main(String [] args) {

Scanner scnr = new Scanner(System.in);

System.out.print("Enter birth month and date:");//comment this line if not needed

int birthMonth=scnr.nextInt();

int birthYear=scnr.nextInt();

String output= birthMonth+"/"+birthYear+"\n";

System.out.println(output);

}

}

if using this code the out put should be 1/2000

You might be interested in
An IT professional with a customer-service
oksian1 [2.3K]

Answer: work late to make sure a persons issue is resolved

Explanation:

I just took the test

6 0
4 years ago
How can you make a search phrase more effective?
Rufina [12.5K]

Answer:

Keep it short: The fewer words you use, the more accurate your search will be. ...

Use quotes: Double quotes around a set of words tells gog.le to consider the exact words in that exact order without any change.

Search a web site: allows you to specify that your search results must come from a given website.

Explanation:

5 0
3 years ago
Which of the following statements is true according to the code?
mihalych1998 [28]

Answer:

The #intro style applies to all paragraphs.

Explanation:

It is a class

A class applyies to all with that name

5 0
4 years ago
A user asks for a checkbox to be automatically ticked if the annual revenue field is greater than a million. Which formula to tr
Otrada [13]

Answer:

AnnualRevenue > 1000000

Explanation:

First, represent the field for annual revenue with AnnualRevenue

From the question, we understand that this field must be greater than 1000000 before a certain action can be performed.

Base on the given condition, the formula that triggers this action is: AnnualRevenue > 1000000

<em>Further explanation is in the attachment</em>

<em></em>

<em>From the attachment, we have that:</em>

If the condition is true, the checkbox be ticked

However, if the condition is false; the checkbox remain unchanged because no specific action is stated for this, in the question.

<em></em>

6 0
3 years ago
Marijuana and hashish come from the hemp plant?
raketka [301]
Yes they come from the hemp plant
5 0
4 years ago
Other questions:
  • Write a program that takes as input an arithmetic expression followed by a semicolon ";". The program outputs whether the expres
    11·1 answer
  • When you reach a YIELD sign, yield to cross traffic and ____ before you enter the intersection.
    14·2 answers
  • In a database, __________ is used to uniquely identify each record for retrieval or manipulation. answer an attribute or a field
    7·1 answer
  • What is the rationale behind the development of an operating system in computing?
    15·1 answer
  • Suppose a computer has 16-bit instructions. The instruction set consists of 32 different operations. All instructions have an op
    7·1 answer
  • If you are asked to list your favorite websites in no particular order, you are relying on
    8·1 answer
  • Please can someone help me answer this question.
    11·1 answer
  • ______ communication channels develop outside the organizational structure and do not follow the chain of command.
    8·2 answers
  • 10. Two technicians are discussing recycling specifications for refrigerant. Technician A says that refrigerant oil with 5,000 p
    9·1 answer
  • I'll mark you the brainlest please help
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!