Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/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/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":27885,"date":"2015-11-25T16:09:34","date_gmt":"2015-11-25T22:09:34","guid":{"rendered":"http:\/\/alan46bc.wordpress.com\/?p=96"},"modified":"2015-11-25T16:09:34","modified_gmt":"2015-11-25T22:09:34","slug":"wsq16-12","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/wsq16-12\/","title":{"rendered":"#WSQ16"},"content":{"rendered":"

#include <iostream>
\n#include <string>
\n#include <fstream>
\n#include <sstream>
\nusing namespace std;<\/p>\n

int main (){
\nstring Read;
\nstring mid_price;
\nstring city_mpg;
\nstring high_mpg;
\nint n = 57;
\nfloat city;
\nfloat avg_city = 0.0;
\nfloat high;
\nfloat avg_high = 0.0;
\nfloat price;
\nfloat avg_price = 0.0;<\/p>\n

ifstream read_file(“93cars.dat.txt”);
\nif (read_file.is_open()){
\nfor (int i =0; i < 93; i++){
\ngetline(read_file, Read);
\nmid_price = Read.substr(42,4);
\nistringstream buffer(mid_price);
\nbuffer >> price;
\ncity_mpg = Read.substr(52,2);
\nistringstream buffer2(city_mpg);
\nbuffer2 >> city;
\nhigh_mpg = Read.substr(55,2);
\nistringstream buffer3(high_mpg);
\nbuffer3 >> high;
\navg_high = avg_high + high;
\navg_price = avg_price + price;
\navg_city = avg_city + city;
\ngetline(read_file, Read);
\n}
\nread_file.close();
\n}else{
\ncout << “Failed opening the file” << endl;
\n}
\navg_price = avg_price\/93;
\navg_city = avg_city\/93;
\navg_high = avg_high\/93;
\ncout << “Average midprice: ” << avg_price << endl;
\ncout << “Average City MPG: ” << avg_city << endl;
\ncout << “Average Highway MPG: ” << avg_high << endl;
\nreturn 0;
\n}\"screen5\"<\/p>\n

This one was a easy but a little tricky I think but at the end I could make it work.<\/p>\n

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

#include <iostream> #include <string> #include <fstream> #include <sstream> using namespace std; int main (){ string Read; string mid_price; string city_mpg; string high_mpg; int n = 57; float city; float avg_city = 0.0; float high; float avg_high = 0.0; float price; float avg_price = 0.0; ifstream read_file(“93cars.dat.txt”); if (read_file.is_open()){ for (int i =0; i < 93; […]\"\"<\/p>\n","protected":false},"author":291,"featured_media":27884,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[437,46],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27885"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/291"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=27885"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27885\/revisions"}],"predecessor-version":[{"id":27886,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27885\/revisions\/27886"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/27884"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=27885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=27885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=27885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}