Question: Program 2 - Arrays and Functions ( lab 6 - 2 . cpp ) Write a program that does the following: 1 . Define and
Program Arrays and Functions labcpp Write a program that does the following:
Define and use the following three functions:
a string genFirstName
b string genLastName
c void printNamesint count
genFirstName will contain an array of at least first names and randomly return one of the names.
genLastName will contain an array of at least last names and randomly return one of the names.
printNames will use a for loop to print out names using genFirstName and genLastName
The main function will only do two things: seed rand and call printNames;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
