Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started