Reference no: EM133294941
1. Write all code to declare a vector of integers.
2. Write the code to add three integers (1, 2, 3) to the vector you declared in question 1.
(Hint: You must use the function).
3. Write the code to remove the last value from the vector you declared in question 1.
4. rite all code to declare an array of doubles of size 7.
5. Write a loop to get the 7 values and add them to the array from question 4.
6. Write all of the code to open a file, named "Input.txt", that will be used to read from.
7. Write the code to ensure that the file exist.
8. Write a loop that would be used to read from a file (ensuring that you do not go past the end of file).
9. Write all of the code to open a file, named "Output.txt", that will be used to write to.
10. Write the code to close a file, if the file object is named inFile.
11. You will write an entire function that will be named, calcPay. This function will take in two double values, itemPrice (the price of the item) and taxRate (the sales tax) and return the total amount that will charged for the item, which will be a double.
12. Write the function call to the following program that will call the function created in question 9. The value for itemPrice is 10 and the taxRate is 9.25%
13. Explain the difference between a while loop and a do..while loop.