The next appearance of Halley's Comet will be in 45 years. Write a function that will retrieve the age of the user from the text field, and will output how old the user will be when the comet next appears.
The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.