Question: C Programmin Write a C program for the following requirements. Use an array of structures: The following tables show the islands.txt Download islands.txt file,

C Programmin
Write a C program for the following requirements. Use an array of structures:
The following tables show the "islands.txt
Download islands.txt" file, which contains data (48 records) about areas of the world's major landmasses.
Read the "islands.txt" file.
Find the name of the largest land.
Find the name of the smallest land.
Your program should do the following:
1- Create a type (struct) for the landmass record
2- Create an array of the struct you created in step 1
3- Read the information from the file islands.txt and save it in the array.
4- Find the name of the largest land.
5- Find the name of the smallest land.
6- Organize your program into multiple files (main.c funcitons.c, functions.h)
7-Use makefile (optional)
islands.txt:
Africa 11506
Antarctica 5500
Asia 16988
Australia 2968
Axel_Heiberg 16
Baffin 184
Banks 23
Borneo 280
Britain 84
Celebes 73
Celon 25
Cuba 43
Devon 21
Ellesmere 82
Europe 3745
Greenland 840
Hainan 13
Hispaniola 30
Hokkaido 30
Honshu 89
Iceland 40
Ireland 33
Java 49
Kyushu 14
Luzon 42
Madagascar 227
Melville 16
Mindanao 36
Moluccas 29
New_Britain 15
New_Guinea 306
New_Zealand_N 44
New_Zealand_S 58
Newfoundland 43
North_America 9390
Novaya_Zemlya 32
Prince_of_Wales 13
Sakhalin 29
South_America 6795
Southampton 16
Spitsbergen 15
Sumatra 183
Taiwan 14
Tasmania 26
Tierra_del_Fuego 19
Timor 13
Vancouver 12
Victoria 82

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!