I set myself the following additional goal (devised by me):
I set myself the following additional goal for the practical session: To write a programme to construct a short summary of a plot of a novel in the style of Jane Austen based on given input words/phrases. As I have very little previous experience of coding, the output was simply the input variables pasted into a set script. I started with the given codes for adding numbers (given in the handout) and modified it, using the internet to find a way of being able to enter phrases as opposed to integers or single words. My solution was in a file titled Austen.cc.
//Here begins file Austen.cc #includeusing namespace std; int main() { string a, b, c, d, e, f; cout << "Enter the names of two characters, separated by a carriage return" << endl; getline (cin, a); getline (cin, b); cout << "Enter a number" << endl; getline (cin, c); cout << "Enter the names of two activities or events, following each with a carriage return" << endl; getline (cin, d); getline (cin, f); cout << "Enter a noun (with an article)" << endl; getline (cin, e); cout << a << " met " << b << ", who has " << c << " thousand pounds a year, whilst " << d << ". However, the two of them are kept apart by " << e << ". They are eventually reconciled " << f << endl; return 0; }