Question: Modify the following C++ program: Write a count Long Strings function: This function should take 2 parameters: a string array and the number of elements

Modify the following C++ program:
Modify the following C++ program: Write a count Long Strings function: This

Write a count Long Strings function: This function should take 2 parameters: a string array and the number of elements It should return the number of strings in the array with 5 characters or more. You can use length to get the number of characters. For example, if x is a string, would be the number of characters in the string. This function should lake 2 parameters: a string array and the number of elements. It should return a string comprised of the first character of each string in the array. You may assume that every string will have at least I character. You can use operator[] to access a character of a string. For example, if x is a string, x[2] would he its 3rd character. You can use + to concatenate 2 strings. For example, if x and y are strings, x = x + y would concatenate strings x and y and assign the new string to x. Write an calculateSum function: This function should take no parameters. It should read the first 5 integers from a file called input-hw7.txt. and write the sum to a tile called output-hw7.txt You may assume that the file will contain at least 5 integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!