ryanshatch / Name-and-Age-Calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Name and Age Calculator

By: Ryan Hatch

IntroductionUsageExampleContributingLicense


© 2023 Ryan Hatch
All Rights Reserved.

Introduction

The Name and Age Calculator is a simple program created to prompt the user for their name and age, and calculates their birth year based on the current year.

Usage

To use the program, follow these steps:

  1. Run the program.
  2. Enter your name when prompted.
  3. Confirm whether the entered name is correct (Y for yes, N for no).
  4. Enter your age when prompted.
  5. Confirm whether the entered age is correct (Y for yes, N for no).
  6. The program will calculate your birth year by subtracting your age from the current year.
  7. The program will display a message with your name and birth year.
  8. The program will exit.

Example

Here's an example of how the program output might look:

What is your name? John
You entered John. Is this correct? (Y, N) Y
How old are you? 25
You entered 25. Is this correct? (Y, N)? Y
Hello John! You were born in 1998.

Contributing

Contributions to this project are welcome! If you have any ideas, suggestions, or improvements, please feel free to submit a pull request or open an issue.

License

This software is the property of the copyright holder and is protected by copyright laws. All rights are reserved.

The copyright holder grants no implied or express license for the use, copying, modification, distribution, or reproduction of this software, in whole or in part, without the prior written permission of the copyright holder.

Any unauthorized use, copying, modification, distribution, or reproduction of this software, in whole or in part, is strictly prohibited and constitutes a violation of copyright law. Such unauthorized use may result in civil and/or criminal penalties, including but not limited to legal action and monetary damages.

To obtain permission for any use, copying, modification, distribution, or reproduction of this software, please contact the copyright holder at the following address:

ryanshatch@gmail.com

By using this software, you acknowledge that you have read and understood the terms of this license and agree to comply with all applicable copyright laws. Failure to abide by the terms of this license may subject you to legal consequences.

About


Languages

Language:Python 100.0%