Write an application that computes and displays the day on which you become(or became) 10,000 days old. For example, if you we're born on January 1st, 2000, the output would be I will be 10000 days old on 2027-05-19.  It is giving me errors in the picture shown in here.  here is my code: import java.time.*; import java.util.Scanner; public class TenThousandDaysOld {     public static void main(String[] args) {         Scanner in = new Scanner(System.in);         int month;         int day;         int year;         int daysOld = 10000;         System.out.println("Enter month");         month = in.nextInt();         System.out.println("Enter day");         day = in.nextInt();         System.out.println("Enter year");         year = in.nextInt();         LocalDate birthDate = LocalDate.of(year, month, day);         LocalDate futureDate = birthDate.plusDays(daysOld);         System.out.println("I will be " + daysOld + " old on " + futureDate);     } }

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

this assignment wants me to:

Write an application that computes and displays the day on which you become(or became) 10,000 days old. For example, if you we're born on January 1st, 2000, the output would be I will be 10000 days old on 2027-05-19

It is giving me errors in the picture shown in here. 

here is my code:

import java.time.*;
import java.util.Scanner;
public class TenThousandDaysOld {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int month;
        int day;
        int year;
        int daysOld = 10000;
        System.out.println("Enter month");
        month = in.nextInt();
        System.out.println("Enter day");
        day = in.nextInt();
        System.out.println("Enter year");
        year = in.nextInt();

        LocalDate birthDate = LocalDate.of(year, month, day);
        LocalDate futureDate = birthDate.plusDays(daysOld);
        System.out.println("I will be " + daysOld + " old on " + futureDate);

    }
}
O Programming Exercise 3-8
* MindTap - Cengage Learning
b My Questions | bartleby
G import scanner java - Google s x
di General (Client Side Programm x
+
A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=584711193228117745640369451918&elSBN=9781337397094&id=914909347&snapshotld=1948360&
E Apps M Gmail
YouTube
A Maps
: Jasmine v
«
* CENGAGE MINDTAP
Q Search this course
A My Home
Programming Exercise 4-9
Tasks
TenThousandDaysol...
>- Terminal
+
Courses
1 import java.time.*;
Enter month
O Catalog and Study Tools
2 import java.util.Scanner;
11
Results e
* Partner Offers
3 public class TenThousandDaysold {
Enter day
10
A-Z
I will be 1000e days old on d{4}-\d{2}-\d{2}
4
public static void main(String[]
Enter year
args) {
2000
EE Rental Options
Expected Output ®
I will be 10000 old on 2028-
</>
Scanner in = new Scanner
5
I will be 1000e days old on \d{4}-\d{2}-\d{2}
03-28
- College Success Tips
(System.in);
6
int month;
Career Success Tips
int day;
7
Passes by default: String literal was not pr...
8
int year;
Help
int daysold - 10000;
9
10
System.out.println("Enter
O Give Feedback
Declare variable of type LocalDate using
month");
LocalDate.of() function
month = in.nextInt();
11
0.00
out of
10.00
12
System.out.println("Enter
day");
13
day = in.nextInt();
O out of 1 checks passed. Review the results
below for more details.
14
System.out.println("Enter
year");
15
year = in.nextInt();
Checks
16
Run Checks
Submit 33%
12:16 PM
P Type here to search
56%
10/12/2020
Transcribed Image Text:O Programming Exercise 3-8 * MindTap - Cengage Learning b My Questions | bartleby G import scanner java - Google s x di General (Client Side Programm x + A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=584711193228117745640369451918&elSBN=9781337397094&id=914909347&snapshotld=1948360& E Apps M Gmail YouTube A Maps : Jasmine v « * CENGAGE MINDTAP Q Search this course A My Home Programming Exercise 4-9 Tasks TenThousandDaysol... >- Terminal + Courses 1 import java.time.*; Enter month O Catalog and Study Tools 2 import java.util.Scanner; 11 Results e * Partner Offers 3 public class TenThousandDaysold { Enter day 10 A-Z I will be 1000e days old on d{4}-\d{2}-\d{2} 4 public static void main(String[] Enter year args) { 2000 EE Rental Options Expected Output ® I will be 10000 old on 2028- </> Scanner in = new Scanner 5 I will be 1000e days old on \d{4}-\d{2}-\d{2} 03-28 - College Success Tips (System.in); 6 int month; Career Success Tips int day; 7 Passes by default: String literal was not pr... 8 int year; Help int daysold - 10000; 9 10 System.out.println("Enter O Give Feedback Declare variable of type LocalDate using month"); LocalDate.of() function month = in.nextInt(); 11 0.00 out of 10.00 12 System.out.println("Enter day"); 13 day = in.nextInt(); O out of 1 checks passed. Review the results below for more details. 14 System.out.println("Enter year"); 15 year = in.nextInt(); Checks 16 Run Checks Submit 33% 12:16 PM P Type here to search 56% 10/12/2020
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 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