Answered step by step
Verified Expert Solution
Link Copied!

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 (14 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 (14 points)
5. ask for and read in the month, date, day, and year of the user's birthday
6. output the birthday in the U.S. format and the European format
be careful with commas and spaces!
US Format: Day, Month Date, Year
Example: Tuesday, November 4,20.08
European Format: Day Date Month Year
Example: Tuesday 4 November 2008
Additional Coding Requirements (7 points)
code should compile
follow Java naming conventions for variables (lower camel case with no underscores)
use proper indentation and whitespace
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions