Elf Name Generator
Purpose:
The program generates an elf name based on the user's input of their month of birth and the last digit of their phone number.
It uses two arrays of pre-defined first and last names and indexes into them to create the elf name.
It allows the user to repeat the program and generate new elf names by prompting the user if they want to repeat the program and validating their input.
Program Link: replit.com/@jaydenzz/jaydenELFNAMEGEN?v=1
The program generates an elf name based on the user's input of their month of birth and the last digit of their phone number.
It uses two arrays of pre-defined first and last names and indexes into them to create the elf name.
It allows the user to repeat the program and generate new elf names by prompting the user if they want to repeat the program and validating their input.
Program Link: replit.com/@jaydenzz/jaydenELFNAMEGEN?v=1
jaydenelfnamegen.zip | |
File Size: | 6468 kb |
File Type: | zip |
Sample Run:
sh -c make -s
./main
Enter your month of birth (1-12): 13
Invalid month, please enter a value between 1 and 12.
Enter your month of birth (1-12): 12
Enter the last digit of your phone number: 10
Invalid digit, please enter a value between 0 and 9.
Enter the last digit of your phone number: 7
Your elf name is Legolas Goodchild
Do you want to repeat the program ? (Y/N)n
Thank you for using the Elf Name Generator
./main
Enter your month of birth (1-12): 13
Invalid month, please enter a value between 1 and 12.
Enter your month of birth (1-12): 12
Enter the last digit of your phone number: 10
Invalid digit, please enter a value between 0 and 9.
Enter the last digit of your phone number: 7
Your elf name is Legolas Goodchild
Do you want to repeat the program ? (Y/N)n
Thank you for using the Elf Name Generator