Write a program that reads from the console, a person’s

Write a program that reads from the console, a person’s first name, current age, and a year in the future and then displays the person’s name and future age based on the future year. Your main will gather the input and then call a method displayFutureAge(name, currentage, futuredate) that will calculate the future age, based off of the year 2016, and then display the information. Use simple arithmetic to calculate the future age.

For example,

Enter name: Tom

Enter current age: 33

Enter future year: 2050

Output will be:

Tom will be 67 years old in the year 2050.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top