A random name generator.
A random name generator can be useful for creating dummy data for test purposes.
⭐⭐⭐
Make
Write a program to output a random name from one list of forenames and another list of surnames.
Success Criteria
Remember to add a comment before a subprogram, selection or iteration statement to explain its purpose.
Complete the subprogram called generate_name that:
- Assigns an array of forenames. You can use the names: Muhammad, Noah, Jack, Lily, Sophia, Olivia or some of your own.
- Assigns an array of surnames. You can use the names: Wang, Smith, Devi, Jones, Kim and Rodríguez or some of your own.
- It returns a random forename with a space and a random surname.
Complete the main program so that:
- It outputs a random name.
Lily Rodríguez
Sophia Devi