Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is my homework assignment. I need help 1(printing the chart) and 3(counting

ID: 642266 • Letter: T

Question

This is my homework assignment. I need help 1(printing the chart) and 3(counting empty) I will paste my two functions below. Any help is much appreciated.

Printing chart function-

Counting Empty-

An airline needs to keep track of where passengers are sitting on a plane with 12 rows and 6 seats in each row. The first and last seat (A and F) in a row are window seats. The middle two are aisle seats (C and D) A printout of the seating chart should look something like Row 1* Row 2* Row 3* Row 4 X Row 5* Row 6* Row 7 X Row 8* Row 9 X Row 10 * Row 11* Row 12* Where X is an occupied seat and *is an open seat. Write a program to keep track of the seating. The plane should start empty (although you may want to temporarily start it partially full while testing) t should have a menu with these options: 1: Print chart 2: Fill seat 3: Empty count 4: Exit Then read in a number: . If the user choses 1, print a diagram like the one above. . If they chose 2, read in a number (1-12) and a character A-F (I will not test bad data expect something like 3C). If the seat is already full print an error message and print the menu again. If not, mark it filled. Do NOT print the chart. . If they chose 3, print a message telling how many empty seats total and how many empty window and aisle seats. Example: "20 empty seats, 4 window seats, 2 aisle seats". Do NOT print the chart. . After options 1-3 the program should print the menu and read in a new choice. . If they hit 4 the program should end Any other number (unless you do the challenge) should just repeat the menu and get a new input. You do not have to worry about any other bad input. Each menu option other than 4 should be implemented as a separate function. The main function should ONLY have the main menu loop and define the data array-you should start with an empty plane

Explanation / Answer

#include

#include

using namespace std;

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote