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":27890,"date":"2015-11-25T15:52:41","date_gmt":"2015-11-25T21:52:41","guid":{"rendered":"http:\/\/alan46bc.wordpress.com\/?p=84"},"modified":"2015-11-25T15:52:41","modified_gmt":"2015-11-25T21:52:41","slug":"wsq14-15","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/wsq14-15\/","title":{"rendered":"#WSQ14"},"content":{"rendered":"

#include <iostream>
\n#include <cmath>
\nusing namespace std;<\/p>\n

long double precision( int n, long double e)
\n{
\nif (n == 0){
\nreturn ceil (e);
\n} else if (n == 1){
\nreturn floor ((e * 10 ) + 0.5) \/ 10;
\n}else if ( n ==2){
\nreturn ceil((e * 100 ) + 0.05) \/ 100;
\n} else if ( n == 3){
\nreturn floor ((e * 1000 ) + 0.005) \/ 1000;
\n} else if (n == 4){
\nreturn floor ((e * 10000 ) + 0.0005) \/ 10000;
\n}else {
\nreturn e;
\n}
\n}<\/p>\n

long double calculate_e (){
\nlong double e = 2.5;
\nlong double c = 2.0;
\nlong double d, factorial;
\nfor (int i=0;i<5;i++){
\nc = c + 1.0;
\nd = c;
\nfactorial = c;
\nwhile (d>1){
\nd = d – 1.0;
\nfactorial = factorial * d;
\n}
\ne = e + (1.0\/factorial);
\n}
\nreturn e;
\n}<\/p>\n

int main(){
\nint n;
\ncout << “numero de decimales que desees entre 0 y 5″<< endl;
\ncin>> n;
\nlong double e = calculate_e ();
\nlong double e2 = precision(n, e);
\ncout << e2 << endl;
\nreturn 0;
\n}\"screen4\"<\/p>\n

This one was really difficult, at first I didn’t understand what to do but I read the link that was on the wsq and read other post to understand what to do.<\/p>\n

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

#include <iostream> #include <cmath> using namespace std; long double precision( int n, long double e) { if (n == 0){ return ceil (e); } else if (n == 1){ return floor ((e * 10 ) + 0.5) \/ 10; }else if ( n ==2){ return ceil((e * 100 ) + 0.05) \/ 100; } else […]\"\"<\/p>\n","protected":false},"author":291,"featured_media":27889,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[391,46],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27890"}],"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=27890"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27890\/revisions"}],"predecessor-version":[{"id":27891,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/27890\/revisions\/27891"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/27889"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=27890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=27890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=27890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}