Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started