Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with c programming. I uploaded with a tamplate as well. Last 3 pictures are tamplate asigmer arrival dt a swucture of datetine

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Please help me with c programming. I uploaded with a tamplate as well. Last 3 pictures are tamplate

asigmer arrival dt a swucture of datetine t type as defined below Note tuat we new hane a struct nested wihin a struct. The date time t is a structure tyoedet for struct date tine. The struct date.time contains the nonth-integer between 1 and 12 (indushe day- integer berween 1 and 31 (inclusive) hour- inleger betwnen O and 23 (inclusve) minute- integer betwnen 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 , ?? gnt to he flights through he terminal. You shuld Oalect the ngut by asking mill questions from the user Enter flight code Enter departure info for the flight leaving SYD. Enter nonth, date, hour and ninute separated by spaces Enter arrival city code Enter arrival info. Enter month, date, hour and minute separated by spaces> 2. display all flights to a destination Prampt the following question Enter arrival, city cade or enter to show all destinations> The user may enter the abbreviation of MAX CITVCODE LEN characters for the arrival city. The progranm shouid display all fights to the requested destination. it the user input is , display all fights The display format should is as follows Flight Origin Destination VAI SYD 11-26?:54 LAX 11-26 18:26 Pay attention to the strict formatting guide Flight-left aligned. MAX-FL?GHTCODE-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 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 flights array you had in memory when loading from the file. 5. exit the program au/we nkPagetrndrwendcotert id??2713368 18.course id.34202_1 https:ionine.uts.edu

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

Students also viewed these Databases questions

Question

=+ a. a family deciding whether to buy a new car

Answered: 1 week ago

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago