{"id":48,"date":"2021-10-31T14:31:00","date_gmt":"2021-10-31T14:31:00","guid":{"rendered":"https:\/\/rijankc.com.np\/2021\/10\/31\/wap-to-find-the-cost-of-painting-the-four-walls-of-a-room\/"},"modified":"2024-11-04T09:38:04","modified_gmt":"2024-11-04T03:53:04","slug":"wap-to-find-the-cost-of-painting-the-four-walls-of-a-room","status":"publish","type":"post","link":"https:\/\/rijankc.com.np\/?p=48","title":{"rendered":"WAP to find the cost of painting the four walls of a room"},"content":{"rendered":"<p><b><span style=\"font-family: 'Times New Roman', 'serif'; text-indent: -0.25in;\">Question<br \/>\n<\/span><span style=\"font-family: 'Times New Roman', 'serif'; text-indent: -0.25in;\">Write a program to find the cost of painting the four walls of a room.<\/span><\/b><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><b>Ans:<span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0 <\/span><\/b><\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>CLS<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>INPUT &#8220;Enter length of the room&#8221;;l<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>INPUT &#8220;Enter breadth of the room&#8221;; b<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>INPUT &#8220;Enter height of the room&#8221;; h<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>INPUT &#8220;Enter the cost of painting&#8221;; c<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>LET a = (2 * (l+b))*h<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>LET t = c * a<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>PRINT &#8220;The total cost of painting:&#8221;; t<\/span><\/p>\n<p style=\"line-height: normal; text-indent: -.25in; margin: 0in 0in 0in .25in;\"><span style=\"font-family: 'Times New Roman','serif'; mso-bidi-font-size: 11.0pt;\"><span style=\"mso-tab-count: 1;\">\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>END<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question Write a program to find the cost of painting the four walls of a room. Ans:\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0 CLS \u00a0\u00a0\u00a0\u00a0\u00a0 INPUT &#8220;Enter length of the room&#8221;;l \u00a0\u00a0\u00a0\u00a0\u00a0 INPUT &#8220;Enter breadth of the room&#8221;; b \u00a0\u00a0\u00a0\u00a0\u00a0 INPUT &#8220;Enter height of the room&#8221;; h \u00a0\u00a0\u00a0\u00a0\u00a0 INPUT &#8220;Enter the cost of painting&#8221;; c \u00a0\u00a0\u00a0\u00a0\u00a0 LET a = (2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":740,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[115,114],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-c-programming","category-wap"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=48"}],"version-history":[{"count":2,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/posts\/48\/revisions\/431"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=\/wp\/v2\/media\/740"}],"wp:attachment":[{"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rijankc.com.np\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}