How can I create a program that allows the user to input any name and the system will automatically choose 1 name from it. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I create a program that allows the user to input any name and the system will automatically choose 1 name from it.

Please somebody help me..thankyou

7th Dec 2019, 11:49 AM
Gabriel Arguelles
Gabriel Arguelles - avatar
3 Answers
0
Yes the user will input many names and the system will choose 1 .. How can i do that?
7th Dec 2019, 11:54 AM
Gabriel Arguelles
Gabriel Arguelles - avatar
+ 3
you need a multidimensional array, loop, generate random numbers
7th Dec 2019, 12:28 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
You need either to make the program choose the name randomly or then you need to make a logic how program chooses the name (for example choose the name with first place in alphabetical order.)
7th Dec 2019, 1:16 PM
Seb TheS
Seb TheS - avatar