Develop code with given template
Budget: $10 – $30 USD
You are given a driver that creates four vectors of four different datatypes: Integer, Double, Char, and String. Your task is to write two fuctions rotateLeft and output. rotateLeft function takes in a vector of any type as input and rotates the vector by one position in a circular way: For example, if the vector contains the integers 1 2 3 4 5. One call of rotateLeft on this vector will leave the vector as 2 3 4 5 1.
Successive calls will yield 3 4 5 1 2, 4 5 1 2 3 and finally the fourth call will leave it as 5 1 2 3 4.
The function output takes in a vector of any type and prints it to the console.
Note that strings are read from the file “text.txt”.
Starter Code
The template code is provided for you in resources.
Specifications
Implement the these functions in the the driver (which will be given to you in the template) to be named rotateMain.cpp
Testing and Verification
Test your program thoroughly. Add more tests than the ones given below. Make sure that it compiles and runs correctly
Successive calls will yield 3 4 5 1 2, 4 5 1 2 3 and finally the fourth call will leave it as 5 1 2 3 4.
The function output takes in a vector of any type and prints it to the console.
Note that strings are read from the file “text.txt”.
Starter Code
The template code is provided for you in resources.
Specifications
Implement the these functions in the the driver (which will be given to you in the template) to be named rotateMain.cpp
Testing and Verification
Test your program thoroughly. Add more tests than the ones given below. Make sure that it compiles and runs correctly