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
While surfing online, Patricia checks her email and reads the latest messages. She then browsers a website and logs in a comment
Anettt [7]
What are you asking for in this it doesnt give us a question

8 0
3 years ago
What will be displayed if the following Java code segment is run? System.out.println("one "); System.out.print("two "); System.o
Morgarella [4.7K]

I'm not familiar with Java, but I'm familiar with C#.

Ok, back to the point. Those lines will print in your console: "One", "Two" and "Three"

8 0
3 years ago
Which finger types the return or enter key?
levacccp [35]
Usually the ring finger
8 0
3 years ago
Read 2 more answers
Draw a datapath that can perform the following set of register replacement and combinational operations. Assume all registers ar
Paladinen [302]

Answer:

Check the explanation

Explanation:

Kindly check the attached image below to see the step by step solution to the question above above.

5 0
3 years ago
How many currencies do recognize?
klemol [59]
The United Nations currently recognizes 180 currencies that are used in 195 countries across the world the United States dollar is a popular currency and about 66 countries either peg their currency to the US dollar or use it as their currency
3 0
3 years ago
Other questions:
  • If someone receives a shock, or a piece of equipment is throwing sparks or arcing you should try to pull them away from the sour
    7·1 answer
  • The network architecture component that is a special LAN with a group of servers that enables electronic data exchange of betwee
    8·1 answer
  • Describe the differences between program development and program execution, including the installed software required for develo
    5·1 answer
  • Create a program in Python that prompts the user to enter an integer number within the range of 1 to 10 inclusive. The program s
    15·2 answers
  • Describe five examples of civil engineering projects.
    6·1 answer
  • In the list [0, 13, 5.4, "integer"], which element is at index 2?
    11·1 answer
  • What is your favorite song? mine is "In the final"
    7·2 answers
  • NAT addresses concerns over the dwindling IPv4 address space by ___________________. 1 point allowing networks to use fewer IP a
    15·1 answer
  • What is an advantage of using a fully integrated cloud based data analytics platform
    5·1 answer
  • A packet switch has 5 users, each offering packets at a rate of 10 packets per second. The average length of the packets is 1,02
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!