Question: Challenge 3: number exercise: AgeConvert Create a method in C# that prompts the user for their name and age (in years). This can be a
Challenge 3: number exercise: AgeConvert Create a method in C# that prompts the user for their name and age (in years). This can be a simple number, not the exact date of birth. For example: 21 Your code should do the following:
1. Display to the user the name and age they have entered
2. Convert the age to the number of days the user has been alive and display the results (as an extra challenge, consider leap year calculation)
3. Convert the age and display the result for the number of hours, minutes, and seconds the user has been alive User Input: Prompt the user to enter in their name. Prompt the user to enter in their age. Console Output: Display the user name and number of days the person has been alive Display the user name and number of hours the person has been alive Display the user name and number of minutes the person has been alive Display the user name and number of seconds the person has been alive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
