{"id":198,"date":"2026-08-28T19:38:38","date_gmt":"2026-08-28T19:38:38","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/d_eanes\/?p=198"},"modified":"2026-08-28T19:38:39","modified_gmt":"2026-08-28T19:38:39","slug":"free-friday-8-28-26","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/d_eanes\/2026\/08\/28\/free-friday-8-28-26\/","title":{"rendered":"Free Friday 8\/28\/26"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Today I converted 5 python problems into c++. If statements were the focus. With the problems focusing on temperature, grades, positive and negative numbers, and so on.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \/\/problem 5\n    float numb1;\n    float numb2;\n    string oper;\n\n    cout &lt;&lt; \"Enter the first number: \";\n    cin >> numb1;\n    cout &lt;&lt; \"Enter the another number: \";\n    cin >> numb2;\n    cout &lt;&lt; \"What operation: \";\n    cin >> oper;\n    if (oper == \"+\") {\n        cout &lt;&lt; \"Answer: \" &lt;&lt; numb1 + numb2;\n    }\n    else if (oper == \"-\") {\n        cout &lt;&lt; \"Answer: \" &lt;&lt; numb1 - numb2;\n    }\n    else if (oper == \"\/\") {\n        cout &lt;&lt; \"Answer: \" &lt;&lt; numb1 \/ numb2;\n    }\n    else if (oper == \"*\") {\n        cout &lt;&lt; \"Answer: \" &lt;&lt; numb1 * numb2;\n    }\n    else {\n        cout &lt;&lt; \"Not an operation!\";\n    }<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"417\" src=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/08\/image-1024x417.png\" alt=\"\" class=\"wp-image-199\" srcset=\"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/08\/image-1024x417.png 1024w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/08\/image-300x122.png 300w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/08\/image-767x312.png 767w, https:\/\/theroyalscode.com\/students\/d_eanes\/wp-content\/uploads\/2026\/08\/image.png 1108w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This helped me make sense of if \/ else statements in c++.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I converted 5 python problems into c++. If statements were the focus. With the problems focusing on temperature, grades, positive and negative numbers, and so on. This helped me make sense of if \/ else statements in c++.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/posts\/198\/revisions\/200"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/d_eanes\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}