Question: both exercise 1 and 2 and in C++ please Lab Activity #7-2D Arrays and File Streams oe Exercise 1: +t please Write a program that

 both exercise 1 and 2 and in C++ please Lab Activity

both exercise 1 and 2 and in C++ please

Lab Activity #7-2D Arrays and File Streams oe Exercise 1: +t please Write a program that declares a two-dimensional array named myFancyArray of the type double. Initialize the array to the following values: 23 6.06 36.36 14.12 17 13 90.09 85.99 1100 3.145 5.4 1. Create a function that will return the sum of the third column. (Remember that the index of the third column is 2!) Output this result. Create a function that will use a nested loop to display all the elements in the array to the screen. 2. Exercise please Write a program that can be used to assign seats for a commercial airline. The airplane has 13 rows, with 6 seats in each row. Rows 1-4 are first-class seats, while rows 5-13 are economy seats. Create a menu-driven program. Display a "map" of all of the seats on the airplane (display a star (") to indicate the seat is available; display an X if the seat is occupied). Ask the user which class of ticket they are interested in (first-class or economy) and to select the specific seat(s) they wish to reserve. Either reserve the seat, or tell the user that the request could not be completed You must create this program by writing the following functions: displayMap will display the current seating map of the entire airplane, makeReservation will let the user select the s seats) they wish to reserve, and validateFunction will make sure that a) the user is not trying to reserve seats that are already taken and b) the user's seat-class choice is appropriate for pecific the seats they've selected Row 1 Row 2 Row 3 etc.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!