{"id":21016,"date":"2021-12-07T16:44:38","date_gmt":"2021-12-07T16:44:38","guid":{"rendered":"https:\/\/assignmenttutors.net\/blog\/write-a-program-that-can-be-used-to-assign-seats-for-a-commercial\/"},"modified":"2021-12-07T16:44:38","modified_gmt":"2021-12-07T16:44:38","slug":"write-a-program-that-can-be-used-to-assign-seats-for-a-commercial","status":"publish","type":"post","link":"https:\/\/assignmenttutors.net\/blog\/write-a-program-that-can-be-used-to-assign-seats-for-a-commercial\/","title":{"rendered":"Write a program that can be used to assign seats for a commercial"},"content":{"rendered":"<div>\n<p>Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class. 3-7 are business rows. 8-13 are economy rows. The program should prompt the user to: A. Enter ticket type. (first class, business class, economy class.) B. Desired seat. Output the seating plan as follows: Row 1 = * * x * X X Row 2 = * X * X * X Row 3 = * * X X * X Row 4 = X * X * X X Row 5 = * X * X * * Row 6 = * X * * * X Row 7 = X * * * X X Row 8 = * X * X X * Row 9 = X * X X * X Row 10 = * X * X X X Row 11 = * * X * X * Row 12 = * * X X * X Row 13 = * * * * X * X = seat is taken *= seat is available. <\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class. 3-7 are business rows. 8-13 are economy rows. The program should prompt the user to: A. Enter ticket type. (first class, business class, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-21016","post","type-post","status-publish","format-standard","hentry","category-homework-help"],"_links":{"self":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/21016","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/comments?post=21016"}],"version-history":[{"count":0,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/posts\/21016\/revisions"}],"wp:attachment":[{"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/media?parent=21016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/categories?post=21016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmenttutors.net\/blog\/wp-json\/wp\/v2\/tags?post=21016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}