Question: Please answer the question (in terms of C programming) and explain answer. COMP1004 Engineering Question 4 - Arrays and Matrices (20 marks) 04(a) Write a

Please answer the question (in terms of C programming) and explain answer.
COMP1004 Engineering Question 4 - Arrays and Matrices (20 marks) 04(a) Write a structure in C called 'PASSENGER' to store information about passengers onboard a flight. Include passenger information such as their first name, last name, address, flight number, flight date and seat number. You have to decide which data type to use for these entries 3 marks) lt 04(b) Declare an array of 200 passengers called flight313' using the passenger structure you have created in Q4(a) above. [2 marks] St QHicl Suppose the very first passenger recorded for flight3 13 is called "John Smith", show how you would assign John Smith's first name and last name into the very first element of the flight313 array you have created using your PASSENGER structure from Q4(b) above. [2 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
