Question: Write a C++ program that will prompt a user to enter a persons Name as a string. Then the program will simulate a fortune telling
Write a C++ program that will prompt a user to enter a persons Name as a string. Then the program will simulate a fortune telling machine. You should have the computer generate a random number between 1 and 20.(seed the random number generator with time beforehand). Then ouput the following statement:
Name will have xx children.
Where Name is the string that was entered by the user and xx is the random number that generated by the generator.
Repeat this within the program for a second name.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
