le Runs: Mint NING4 fe/Ntek/CULACS2011/Code a Futuretonth2 nonth is this nonth? 1 for January 2 for February 3 for Harch 4 for April s for May 6 for June ? for July s for August 9 for septenber 10 for october 11 for Novenber 12 for Decenber month: 2 any months into the future? 12 years and 0 months it wil1 be nonth 2 tt MINGM C/Ntek/csULA/Csz011/code a FutureMonth nonth is this nonth? 1 for January 2 for February 3 for Harch 4 for Apri1 s for May 6 for June 7 for July for August

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Problem 3
This problem is very similar to Problem 1. and you should use your solution to Problem 1 as starter code.
The inputs are the same, but the output is a bit different: instead of "In this-many months the output begins with "in this-many years and this-many months."
Sample Runs:
nickini NINGN64 /c/Ntck/CSULA/CS2011/code
S java FutureMonth2
which nonth is this nonth?
Enter 1 for January
2 for February
3 for March
4 for April
5 for May
6 for June
7 for July
8 for August
9 for September
10 for october
11 for Novenber
12 for Decenber
This nonth: 2
How many months into the future? 12
In 1 years and 0 months it wil1 be nonth 2
nickamimi MINGN64 /c/Nick/CSULA/cs2011/code
S java FutureMonth
which nonth is this month?
Enter 1 for January
2 for February
3 for March
4 for Aoril
5 for May
6 for June
7 for July
8 for August
9 for Septenber
10 for october
11 for November
12 for December
This month: 6
How nany months into the future? 20
In 20 nonths it will be month 2
nickint MINGH64 /c/Nick/CSULA/CS2011/code
S java Futurenonth
which nonth is this nonth?
Enter 1 for January
2 for February
4 for April
5 for May
6 for June
7 for July
s for August
9 for September
10 for october
11 for Novenber
12 for Decenber
This month: S
HOw many months into the future? 100
In 100 nonths it will be month 9
Submission:
Submit TutureMonth2.java.
Transcribed Image Text:Problem 3 This problem is very similar to Problem 1. and you should use your solution to Problem 1 as starter code. The inputs are the same, but the output is a bit different: instead of "In this-many months the output begins with "in this-many years and this-many months." Sample Runs: nickini NINGN64 /c/Ntck/CSULA/CS2011/code S java FutureMonth2 which nonth is this nonth? Enter 1 for January 2 for February 3 for March 4 for April 5 for May 6 for June 7 for July 8 for August 9 for September 10 for october 11 for Novenber 12 for Decenber This nonth: 2 How many months into the future? 12 In 1 years and 0 months it wil1 be nonth 2 nickamimi MINGN64 /c/Nick/CSULA/cs2011/code S java FutureMonth which nonth is this month? Enter 1 for January 2 for February 3 for March 4 for Aoril 5 for May 6 for June 7 for July 8 for August 9 for Septenber 10 for october 11 for November 12 for December This month: 6 How nany months into the future? 20 In 20 nonths it will be month 2 nickint MINGH64 /c/Nick/CSULA/CS2011/code S java Futurenonth which nonth is this nonth? Enter 1 for January 2 for February 4 for April 5 for May 6 for June 7 for July s for August 9 for September 10 for october 11 for Novenber 12 for Decenber This month: S HOw many months into the future? 100 In 100 nonths it will be month 9 Submission: Submit TutureMonth2.java.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY