Instructions:Thislab assignment will read text from a file, and performing some operations onthat string to answer specific questions.1. Download the lab13_data_in.txt file2. In your sketch, read this...

1 answer below »


Instructions:







This
lab assignment will read text from a file, and performing some operations on
that string to answer specific questions.








1.



Download the lab13_data_in.txt file








2.



In your sketch, read this file
using loadStrings()








3.



Remember, strings are case
sensitive!








4.



Based on this file, write code in your
sketch to answer the following questions. Hint, there is one element in the
array at this point.








a.





Does
the text “processing” exist in the file?








b.





What
is numeric position in the string of the first occurrence of “literacy”








c.





What
is the length of the string?








d.





What
is the character at the middle of the string?








e.





What
is the substring of 10 characters from the middle?








5.



Split the string with the delimiter
“.”








6.



Append your name the end of the
newly formed sting array








7.



In your sketch write the file using
saveStrings() with the filename lab13_data_out.txt








8.



Feel free to use any temporary
variables you may need, such as the length of the string








9.



When printing your answers from the
sketch, make sure you are using descriptive messaging, and not just printing an
answer by itself.













@font-face

{font-family:"Cambria Math";

panose-1:2 4 5 3 5 4 6 3 2 4;

mso-font-charset:0;

mso-generic-font-family:roman;

mso-font-pitch:variable;

mso-font-signature:-536870145 1107305727 0 0 415 0;}@font-face

{font-family:Calibri;

panose-1:2 15 5 2 2 2 4 3 2 4;

mso-font-charset:0;

mso-generic-font-family:swiss;

mso-font-pitch:variable;

mso-font-signature:-536859905 -1073732485 9 0 511 0;}p.MsoNormal, li.MsoNormal, div.MsoNormal

{mso-style-unhide:no;

mso-style-qformat:yes;

mso-style-parent:"";

margin:0in;

mso-pagination:widow-orphan;

font-size:12.0pt;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph

{mso-style-priority:34;

mso-style-unhide:no;

mso-style-qformat:yes;

margin-top:0in;

margin-right:0in;

margin-bottom:0in;

margin-left:.5in;

mso-add-space:auto;

mso-pagination:widow-orphan;

font-size:12.0pt;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst

{mso-style-priority:34;

mso-style-unhide:no;

mso-style-qformat:yes;

mso-style-type:export-only;

margin-top:0in;

margin-right:0in;

margin-bottom:0in;

margin-left:.5in;

mso-add-space:auto;

mso-pagination:widow-orphan;

font-size:12.0pt;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle

{mso-style-priority:34;

mso-style-unhide:no;

mso-style-qformat:yes;

mso-style-type:export-only;

margin-top:0in;

margin-right:0in;

margin-bottom:0in;

margin-left:.5in;

mso-add-space:auto;

mso-pagination:widow-orphan;

font-size:12.0pt;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast

{mso-style-priority:34;

mso-style-unhide:no;

mso-style-qformat:yes;

mso-style-type:export-only;

margin-top:0in;

margin-right:0in;

margin-bottom:0in;

margin-left:.5in;

mso-add-space:auto;

mso-pagination:widow-orphan;

font-size:12.0pt;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}.MsoChpDefault

{mso-style-type:export-only;

mso-default-props:yes;

font-family:"Calibri",sans-serif;

mso-ascii-font-family:Calibri;

mso-ascii-theme-font:minor-latin;

mso-fareast-font-family:Calibri;

mso-fareast-theme-font:minor-latin;

mso-hansi-font-family:Calibri;

mso-hansi-theme-font:minor-latin;

mso-bidi-font-family:"Times New Roman";

mso-bidi-theme-font:minor-bidi;}div.WordSection1

{page:WordSection1;}ol

{margin-bottom:0in;}ul

{margin-bottom:0in;}
Answered Same DayDec 11, 2022

Answer To: Instructions:Thislab assignment will read text from a file, and performing some operations onthat...

Vikas answered on Dec 12 2022
37 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here