Question: C++ HOMEWORK HELP THANKS Write a function that takes in an integer vector as a parameter. The function shoulo prompt the user to enter integer

C++ HOMEWORK HELP THANKS

C++ HOMEWORK HELP THANKS Write a function that takes in an integer

Write a function that takes in an integer vector as a parameter. The function shoulo prompt the user to enter integer values and fill the vector with those values at the rear of the vector. It should continue to prompt the user until the user enters a -1 Use function declaration void modifyVector(vector& v) Use prompt: coutss "Please enter an integer value:"xxendl; Rules of filling the vector > If the vector is empty, insert the value into the vector. >> If the vector is not empty and the user input is divisible by 5, then remove an element from the front of the vector. >> If the vector is not empty and the user input is divisible by 3, then remove an element from the end of the vector >Otherwise, insert the user input at the end of the vector. Note: You do not need to write the main(), the include, or namespace commands, you only need to write the function

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!