c++ programing
$10-30 CAD
Paid on delivery
Implement the function justify in the file [login to view URL] to perform left and right justification\r\non a text input of type string. The justified text is a vector of strings.\r\n\r\nThe assumptions for the input text are as follows:\r\n1. The input text consists only of alphabets (lower and upper case), blank spaces (\'\r\n\'), and two punctuation marks (periods (\'.\'), and commas (\',\')).\r\n2. Every word in a sentence in the input text is separated by a single blank space.\r\n3. The punctuation marks immediately follow the last character of the preceding\r\nword, and a single space is present between a punctuation mark and the following\r\nword.\r\n4. There are no new line characters in the input string.\r\n\r\nWe will perform a very primitive form of justification in this assignment using the\r\nfollowing rules:\r\n1. Every line in the justified text must have at least width - 2 characters, with the\r\nexception of the last line, which may have fewer characters.\r\n2. Every line in the justified text must have at most width characters, with the\r\nexception of lines that terminate with a punctuation mark (period or comma). In\r\nsuch cases, the line may have width+1 characters to accommodate the trailing\r\npunctuation mark.\r\n3. Every line in the justified text must start with an alphabet (word). The first\r\ncharacter in a line cannot be a punctuation mark or space.\r\n4. If a word needs to be split across lines in order to follow the above rules, a hyphen\r\n(\'-\') character must be inserted after the first part of the word. The hyphen\r\ncharacter counts toward the total number of characters in a line.
program2:
Requirements: Write a C++ program to that will use a pointer “list_ptr” to dynamically allocate memory for a list of integer values. The program will search for the largest and smallest values within the list and use the pointers “list_small” and “list_large” to store the locations of the smallest and largest values respectively. The program will prompt the user to enter the number of elements in the list and then ask the user to input the values one at a time using the keyboard.
The dynamic memory allocated by the code (using new) should be returned to the system at the end of the program (using delete).
Project ID: #8971589
About the project
8 freelancers are bidding on average $44 for this job
Hello there. I am a computer science student and qualified C++ programmer. I will be able to help you do this at the minimum cost and to the best level