Answered step by step
Verified Expert Solution
Question
1 Approved Answer
First, read an integer from input into birthMonth using scnr . nextInt ( ) . Then, read another integer from input into birthYear using scnr
First, read an integer from input into birthMonth using scnrnextInt Then, read another integer from input into birthYear using scnrnextInt again. Finally, write print statements to output birthMonth, a slash, and birthYear. End with a newline.
The program will be tested with inputs and then with inputs
Ex: If the input is the output is:
Note:
The input values are provided by the program, so use scnrnextInt statements like birthmonth scnr nextInt; to read the input values.
System.out.println; ends the output with a newline. System.out.print; does not end the output with a newline.
Learn how our autograder works
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started