Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

Evaluate three pros and three cons of e-prescribing

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago