Due: Oct 30, 11:59pm? Grading - auto-graded. 2 points per program. See the files in HW/lab13/ You should run each one to see how it works. Each prints out which file from class you should use as a starting point. As always, create a ~/HW/lab13/ directory, and name your .cpp files the same as the programs in HW/lab13/ More details and hints may be posted sometime. lab13_io * for reading one line at a time, use getline (the C++ version) * use string find function to look for bad and well in first response, and look for Harry Potter, Hitchhiker's Guide, Lord of the Rings in second respons lab13_files * either read one line at a time (and write it out to f_out), or read one character at a time (and write it out to f_out) using get lab13_overloading * add operators to rational class for - / * * read in q1.top, q1.bottom, q2.top, q2.bottom with cin * compute each of the operations and print them * note - you do need to use the file as it was. lab13_stack * just adding cout statements for push/pop, and doing an operation lab13_vector * vector should be of double * loop should read double * after cin while loop, have a for loop to compute total * after total is calculated, loop through the numbers and print percentages echo " *** (1) ***" rm -f lab13_io g++ lab13_io.cpp -o lab13_io ./lab13_io well Lord of the Rings bye echo " *** (2) ***" rm -f lab13_files g++ lab13_files.cpp -o lab13_files echo "y" | cp -f /u1/junk/kinne/hello.txt . ./lab13_files hello.txt cat hello.txt.new echo " *** (3) ***" rm -f lab13_overloading g++ lab13_overloading.cpp -o lab13_overloading ./lab13_overloading 3 7 2 5 echo " *** (4) ***" rm -f lab13_stack g++ lab13_stack.cpp -o lab13_stack ./lab13_stack 1 2 3 4 + "*" - | tail -n 4 echo " *** (5) ***" rm -f lab13_vector g++ lab13_vector.cpp -o lab13_vector ./lab13_vector 1 2 3  My output - *** (1) *** jkinne@cs:~/courses/202/lab13$ (starting point for this program: ~jkinne/public_html/cs202-f2017/CLASS/CPP/inputOutput.cpp) (Programmer's note: responses to try - well, bad, Harry Potter, Hitchhiker's Guide, Lord of the Rings) (And string comparisons in program are case sensitive.) Hello. How are you? Awesome, me too. What is your favorite movie? Okay precious. Alright, I have to go. See you later. jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ *** (2) *** jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ cp: overwrite './hello.txt'? jkinne@cs:~/courses/202/lab13$ (starting point for this program: ~jkinne/public_html/cs202-f2017/CLASS/CPP/files.cpp) Copying file hello.txt Copying done, new file is: hello.txt.new jkinne@cs:~/courses/202/lab13$ Hello World! Bye now. jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ *** (3) *** jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ (starting point for this program: ~jkinne/public_html/cs202-f2017/CLASS/CPP/operatorOverloading.cpp) q1.top: q1.bottom: 3/7 q2.top: q2.bottom: 2/5 q1+q2 = 29/35 q1-q2 = 1/35 q1*q2 = 6/35 q1/q2 = 15/14 jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ *** (4) *** jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ (popped off of stack: 1) (doing operation -) (pushing number onto stack: -13) -13 jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ *** (5) *** jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ (starting point for this program: ~jkinne/public_html/cs202-f2017/CLASS/CPP/dataStructures.cpp) Type numbers (stored as double), ctrl-d to quit Total: 6 1, 16.6667 percent of total 2, 33.3333 percent of total 3, 50 percent of total jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$ jkinne@cs:~/courses/202/lab13$