Data Engineers - C Programming Language - Sydney Airport - Computer Science Assessment Answer

Download Solution Order New Solution
Assessment Task:
Data Engineers - C Programming Language  - Sydney Airport - Computer Science Assessment Answer

Data Engineers regularly collect, process and store data. In this task, you will develop a deeper understanding of how C programming language can be used for collecting, processing and storing data.

In this assignment, you get the opportunity to build an interactive program that can manage the list of flights departing Sydney Airport. The list is stored as an array of flight_t type structures flight_t flights [MAX_NUM_FLIGHTS];

The flight_t is a structure typedef for struct flight. The struct flight contains the following fields flight code - an array of MAX_FLIGHTCODE_LEN+1 chars (string) departure_dt - a structure of date_time_t type as defined below arrival_city - array of MAX_CITYCODE_LEN+1 chars (string) arrival_dt - a structure of date_time_t type as defined below Note that we now have a struct nested within a struct. The date_time_t is a structure typedef for struct date_time. The struct date_time contains the following fields, month - integer between 1 and 12 (inclusive) day - integer between 1 and 31 (inclusive) hour - integer between 0 and 23 (inclusive) minute - integer between 0 and 59 (inclusive) Your program interacts with the nested struct array in your memory (RAM) and simple database file in your hard disk.

It should provide the following features:

1. add a flight Add a new flight to the flights through the terminal. You should collect the input by asking multiple questions from the user.

Enter flight code> Enter departure info for the flight leaving SYD. Enter a month, date, hour and minute separated by spaces> Enter arrival city code> Enter arrival info. Enter a month, date, hour and minute separated by spaces>

2. display all flights to a destination Prompt the following question Enter arrival city code or enter to show all destinations> The user may enter the abbreviation of MAX_CITYCODE_LEN characters for the arrival city. The program should display all flights to the requested destination. If the user input is, display all flights. The display format should is as follows. Flight Origin Destination ------ --------------- --------------- VA1 SYD 11-26 09:54 LAX 11-26 18:26 Pay attention to the strict formatting guide: Flight - left-aligned, MAX_FLIGHTCODE_LEN (i.e. 6) chars at most. Origin and Destination City - left-aligned, MAX_CITYCODE_LEN (i.e. 3) chars at most. Month, day, hour, minute - two digits with leading zeros

3. save the flights to the database file Save the flights in the hard disk as a binary/text file named database. You may use your own format to save the data. You should overwrite if the database file already exists.

4. load the flights from the database file Read the database file and put the data into flights. You may only read the data files created by your own program. You should overwrite the flight's array you had in memory when loading from the file.

 

This Computer Science Assessment has been solved by our Computer Science Assessment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.