{"action":"opened","issue":{"url":"https://api.github.com/repos/royboy400/cplusplus/issues/1","repository_url":"https://api.github.com/repos/royboy400/cplusplus","labels_url":"https://api.github.com/repos/royboy400/cplusplus/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/royboy400/cplusplus/issues/1/comments","events_url":"https://api.github.com/repos/royboy400/cplusplus/issues/1/events","html_url":"https://github.com/royboy400/cplusplus/issues/1","id":147160195,"number":1,"title":"Arrays, structs, and functions","user":{"login":"royboy400","id":12120094,"avatar_url":"https://avatars.githubusercontent.com/u/12120094?v=3","gravatar_id":"","url":"https://api.github.com/users/royboy400","html_url":"https://github.com/royboy400","followers_url":"https://api.github.com/users/royboy400/followers","following_url":"https://api.github.com/users/royboy400/following{/other_user}","gists_url":"https://api.github.com/users/royboy400/gists{/gist_id}","starred_url":"https://api.github.com/users/royboy400/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/royboy400/subscriptions","organizations_url":"https://api.github.com/users/royboy400/orgs","repos_url":"https://api.github.com/users/royboy400/repos","events_url":"https://api.github.com/users/royboy400/events{/privacy}","received_events_url":"https://api.github.com/users/royboy400/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-09T20:14:45Z","updated_at":"2016-04-09T20:14:45Z","closed_at":null,"body":"1. Reads in English text of an arbitrary length from the keyboard. Feel free to include this task in the main() function.\r\n2. Identifies the least frequent letter in the above text. Implement a separate function getLeastFreqLetter() for this task. The main() function then calls this function to find out the least frequent letter and its frequency.\r\n3. Calculate the frequency of each unique word (case insensitive). Implement another function countWordFreq() for this task. Words will be separated by spaces and punctuation. You can use the isspace and ispunct functions to detect separators (references here: http://www.cplusplus.com/reference/cctype/isspace/ and http://www.cplusplus.com/reference/cctype/ispunct/). Please define a global class that contains two public fields, a word and its count, for this task. You can then define a vector of this class to store all the unique words and their counts. The main() function will call this function to print out each word and its corresponding frequency.\r\n4. Identify the most frequently occurring word in the paragraph. Implement another stand-alone function getMostFreqWord() for this purpose. This function will be called in main() to identify the most frequent word and its respective frequency.\r\nYour program should prompt the person running it to enter text. Once they are done (once they press enter), your program should print out the information detailed above.\r\n\r\nProblem 2: Implement another C++ program to sort a list of integers using the selection sort algorithm. You are required to\r\n1. use an integer vector to store the input numbers typed from the keyboard. The declaration of this vector will be in main(). You'll need to implement a separate function readData() to read numbers from the keyboard;\r\n2. implement a separate function called selectionSort(), which will be called by the main() function to sort the afore-mentioned vector;\r\n3. implement another function printVector() to print out the content of the vector. This function will be called by main() right after calling readData() and selectionSort(), respectively, to print out the vector content before and after being sorted."}}