Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101winter2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101winter2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":12427,"date":"2015-05-01T15:23:38","date_gmt":"2015-05-01T20:23:38","guid":{"rendered":"https:\/\/etostadoima.withknown.com\/2015\/mastery-25-strings"},"modified":"2015-05-01T15:23:38","modified_gmt":"2015-05-01T20:23:38","slug":"mastery-25-strings","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2015\/2015\/mastery-25-strings\/","title":{"rendered":"Mastery 25 (strings)"},"content":{"rendered":"
\n

Hello everybody:<\/p>\n

For this mastery I will show you three pictures of three different programs I created in which I used strings. Let´s remember that strings represent series of characters, so take a look at these programs, and see how I used them.<\/p>\n

In the first one, I used a string to define the first line in the .txt file I took the data from. After that I used the substring statement to  select only the part of the data I nedded of each line, and finally I just converted the string to a float using the atoi function.<\/p>\n

\"\"<\/p>\n

 <\/p>\n

In the next program I used a string for the same purposes that in the first one. The string defines the first line of the file, but by using a loop, every single line in the file is eventually checked. In this case I didn´t use the substring statement because I needed all the data in each line (the line was jus a number). As I did in the first program, at the end I just converted the string to a float by using the atoi function. <\/p>\n

\"\",   <\/p>\n

 <\/p>\n

In the last program, I also defined the first line of the program as a string, but in this case the program has to identify how many times the word “banana” appears within the file. I had to use the function “transform” to change all capital letters to non-capital so the program would count “BanAna”,  “BANANA” “banana” or any other mix. The last thing I had to do was to use the function find in order to check for the word I nedded. <\/p>\n

\"\"<\/p>\n

As you can see, strings are not that complicated to use and they can be used to many different aplications. I hope you guys find this useful.<\/p>\n

Thanks for reading.<\/p>\n

 <\/p>\n

#TC1017<\/a> #Mastery25<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Hello everybody:For this mastery I will show you three pictures of three different programs I created in which I used strings. Let´s remember that strings represent series of characters, so take a look at these programs, and see how… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":57,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,26],"tags":[209,40],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12427"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/users\/57"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/comments?post=12427"}],"version-history":[{"count":6,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12427\/revisions"}],"predecessor-version":[{"id":19438,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/posts\/12427\/revisions\/19438"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/media?parent=12427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/categories?post=12427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2015\/wp-json\/wp\/v2\/tags?post=12427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}