Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a complete program to read in and display name, age, and various forms of a date. Your program should accomplish these steps, in order:
Write a complete program to read in and display name, age, and various forms of a date. Your program should accomplish these steps, in order:
Part One: Name and Age points
ask the user for their name and read it into a variable
ask the user for their age and read it into a variable
calculate how old the user will be after their next birthday
output the user's name and age after their next birthday
Part Two: Birthday Printing points
ask for and read in the month, date, day, and year of the user's birthday
output the birthday in the US format and the European format
be careful with commas and spaces!
US Format: Day, Month Date, Year
Example: Tuesday, November
European Format: Day Date Month Year
Example: Tuesday November
Additional Coding Requirements points
code should compile
follow Java naming conventions for variables lower camel case with no underscores
use proper indentation and whitespace
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