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":22488,"date":"2015-08-28T23:44:03","date_gmt":"2015-08-29T04:44:03","guid":{"rendered":"https:\/\/everibarra101programming.withknown.com\/2015\/wsq05"},"modified":"2015-08-28T23:44:03","modified_gmt":"2015-08-29T04:44:03","slug":"wsq05-temperature-15","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/wsq05-temperature-15\/","title":{"rendered":"#WSQ05-Temperature"},"content":{"rendered":"
\n

I\u00b4m becoming more familiar with the commands of c++, right now i eventually make a programm that can convert from Fahrenheit to Celsius and vice versa.<\/p>\n

It was kind of difficult at first, but once I saw a video about loops and if\u00b4s, well…it was all cleared out for me, now I can ressume my skills acquired in the homework in the following statements:<\/p>\n

-You need to assign a value before the if\u00b4s<\/p>\n

-You need to be careful with the “;”<\/p>\n

-Dont give up!!!<\/p>\n

here\u00b4s the video that help me improve my skills<\/p>\n

https:\/\/www.youtube.com\/watch?v=mSRs9WGrvqA<\/a><\/p>\n

\"\"<\/p>\n

\u00a0<\/p>\n

My code:<\/p>\n<\/p>\n

\n
#include<\/a> <iostream><\/span>
using<\/span> namespace<\/span> std;
int<\/span> main<\/span>(){
\u00a0\u00a0\u00a0 int<\/span> x;
\u00a0\u00a0\u00a0 char<\/span> c;



\u00a0\u00a0\u00a0 cout<<<\/span>\"Choose a convertion\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cout<<<\/span>\"1. Celsius\u00a0 to\u00a0 Fahrenheit\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cout<<<\/span>\"2. Fahrenheit to Celsius\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0 cin>><\/span>x;
\u00a0\u00a0\u00a0\u00a0 if<\/span>(x==<\/span>1<\/span>){
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 float<\/span> x;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"Enter the temperature in Celsius degrees\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cin>><\/span>x;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 float<\/span> y=<\/span>(x*<\/span>9<\/span>\/<\/span>5<\/span>)+<\/span>(32<\/span>);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if<\/span> (y<<\/span>212<\/span>){
\u00a0 cout <<<\/span> \"Water does not boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;
}

if<\/span> (y><\/span>211<\/span>)
{

\u00a0 cout<<<\/span> \"Water does boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;

}
cout<<<\/span> \"\"<\/span><<<\/span>endl;
if<\/span> (y<<\/span>32<\/span>){

\u00a0 cout<<<\/span> \"The water is frozen\"<\/span><<<\/span> endl;

}
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>x<<<\/span>\" Celsius degrees equals to \"<\/span><<<\/span>y<<<\/span>\" Fahrenheit\"<\/span>;
\u00a0\u00a0\u00a0\u00a0\u00a0 }else<\/span>{
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 float<\/span> a;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"Enter the temperature in fahrenheit degrees \"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cin>><\/span>a;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>\"\"<\/span><<<\/span>endl;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 float<\/span> b=<\/span>(a-<\/span>32<\/span>)*<\/span>5<\/span>\/<\/span>9<\/span>;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 if<\/span> (b<<\/span>212<\/span>){
\u00a0 cout <<<\/span> \"Water does not boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;
}

if<\/span> (b><\/span>211<\/span>)
{

\u00a0 cout<<<\/span> \"Water does boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;

}
cout<<<\/span> \"\"<\/span><<<\/span>endl;
if<\/span> (b<<\/span>33<\/span>){

\u00a0 cout<<<\/span> \"The water is frozen\"<\/span><<<\/span> endl;

}
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cout<<<\/span>a<<<\/span>\" Fahrenheit degrees equals to \"<\/span><<<\/span>b<<<\/span>\" Celsius degrees\"<\/span>;
\u00a0\u00a0\u00a0\u00a0\u00a0 }

\u00a0\u00a0 return<\/span> 0<\/span>;
\u00a0\u00a0\u00a0 }
<\/pre>\n<\/div>\n

<\/p>\n<\/p>\n

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

\n

I´m becoming more familiar with the commands of c++, right now i eventually make a programm that can convert from Fahrenheit to Celsius and vice versa.<\/p>\n

It was kind of difficult at first, but once I saw a video about loops and if´s, well…it was all cleared out for me, now I can ressume my skills acquired in the homework in the following statements:<\/p>\n

-You need to assign a value before the if´s<\/p>\n

-You need to be careful with the “;”<\/p>\n

-Dont give up!!!<\/p>\n

here´s the video that help me improve my skills<\/p>\n

https:\/\/www.youtube.com\/watch?v=mSRs9WGrvqA<\/a><\/p>\n

\"\"<\/p>\n

 <\/p>\n

My code:<\/p>\n<\/p>\n

\n
#include<\/a> <iostream><\/span>
using<\/span> namespace<\/span> std;
int<\/span> main<\/span>(){
    int<\/span> x;
    char<\/span> c;



    cout<<<\/span>\"Choose a convertion\"<\/span><<<\/span>endl;
    cout<<<\/span>\"\"<\/span><<<\/span>endl;
    cout<<<\/span>\"1. Celsius  to  Fahrenheit\"<\/span><<<\/span>endl;
    cout<<<\/span>\"\"<\/span><<<\/span>endl;
    cout<<<\/span>\"2. Fahrenheit to Celsius\"<\/span><<<\/span>endl;
    cout<<<\/span>\"\"<\/span><<<\/span>endl;
    cin>><\/span>x;
     if<\/span>(x==<\/span>1<\/span>){
          float<\/span> x;
          cout<<<\/span>\"Enter the temperature in Celsius degrees\"<\/span><<<\/span>endl;
          cout<<<\/span>\"\"<\/span><<<\/span>endl;
          cin>><\/span>x;
          cout<<<\/span>\"\"<\/span><<<\/span>endl;
          float<\/span> y=<\/span>(x*<\/span>9<\/span>\/<\/span>5<\/span>)+<\/span>(32<\/span>);
          if<\/span> (y<<\/span>212<\/span>){
  cout <<<\/span> \"Water does not boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;
}

if<\/span> (y><\/span>211<\/span>)
{

  cout<<<\/span> \"Water does boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;

}
cout<<<\/span> \"\"<\/span><<<\/span>endl;
if<\/span> (y<<\/span>32<\/span>){

  cout<<<\/span> \"The water is frozen\"<\/span><<<\/span> endl;

}
          cout<<<\/span>x<<<\/span>\" Celsius degrees equals to \"<\/span><<<\/span>y<<<\/span>\" Fahrenheit\"<\/span>;
      }else<\/span>{
          float<\/span> a;
          cout<<<\/span>\"Enter the temperature in fahrenheit degrees \"<\/span><<<\/span>endl;
          cout<<<\/span>\"\"<\/span><<<\/span>endl;
          cin>><\/span>a;
          cout<<<\/span>\"\"<\/span><<<\/span>endl;
          float<\/span> b=<\/span>(a-<\/span>32<\/span>)*<\/span>5<\/span>\/<\/span>9<\/span>;
          if<\/span> (b<<\/span>212<\/span>){
  cout <<<\/span> \"Water does not boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;
}

if<\/span> (b><\/span>211<\/span>)
{

  cout<<<\/span> \"Water does boil at this temperature (under typical conditions). \"<\/span><<<\/span>endl;

}
cout<<<\/span> \"\"<\/span><<<\/span>endl;
if<\/span> (b<<\/span>33<\/span>){

  cout<<<\/span> \"The water is frozen\"<\/span><<<\/span> endl;

}
          cout<<<\/span>a<<<\/span>\" Fahrenheit degrees equals to \"<\/span><<<\/span>b<<<\/span>\" Celsius degrees\"<\/span>;
      }

   return<\/span> 0<\/span>;
    }
<\/pre>\n<\/div>\n

<\/p>\n<\/p>\n

 <\/p>\n<\/div>\n","protected":false},"author":262,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[499,606,519,144,605,604,607,147,95],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22488"}],"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\/262"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=22488"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22488\/revisions"}],"predecessor-version":[{"id":22489,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22488\/revisions\/22489"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=22488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=22488"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=22488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}