Question: (C++) Hello, please answer about this question in C++ please. *Do not use any pointers or dynamic arrays please! F. Write a function that takes
(C++)
Hello, please answer about this question in C++ please.
*Do not use any pointers or dynamic arrays please!

F. Write a function that takes the following parameters: a array strArray of C++-style strings, as well as a character ch. The function then and outputs to the console the indices of any strings in strArray in which the character ch appears more than once. G. Add a reset member function to the Lab 9 Bug class that sets the bug's position to 0, and its direction to H. Write a C++ program that creates a bug object, and then has a loop with 100 iterations. Each iteration, the loop will generate a random number, 0 or 1. If the random number is 0, the program should move the bug in its current direction. If the number is 1, the program should change the bug's direction. Both number should be equally likely. At the end of the loop, the program should print the bug's location and direction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
