A memory-based file system.
A memory-based file system.
Assume that the structure:
struct personNode {
int ID;
char lastName[20];
char firstName[20];
int age[3];
struct personNode *nextPtr;
};
You have a file named person.csv.
You need to write codes for implementing five functions:—-
1) Input function: Input 20 last names, first names, ages, and write them to the file.
2) Load function: Read data from the file, then covert the data to a linked list. Display the average age from the the linked list.
3) Search function: search the linked list by ID, first name, last name, and age.
4) Delete a record of the linked list, then show the changed average. After doing that, please remove the record from the file.
Input 20 records:
ID, First Name, Last Name, Age
1 Liam , Smith, 25
2 Noah, Smith, 26
3 William , Smith, 27
4 James, Smith, 60
5 Oliver, Smith, 35
6 Benjamin , Smith, 45
7 Elijah, Smith, 10
8 Lucas, Smith, 35
9 Mason, Smith, 20
10 Logan, Brown ,19
11 Emma, Brown, 29
12 Olivia, Brown, 39
13 Ava, Brown, 49
14 Isabella, Brown, 59
15 Sophia, Brown, 18
16 Charlotte, Brown, 17
17 Mia, Brown, 12
18 Amelia, Brown, 10
19 Harper, Brown, 8
20 Evelyn, Brown,15
Preferred language style US English
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Get free features with our reliable essay writing service
-
Title page
We offer you a free title page tailored according to the specifics of your particular style.
-
Custom formatting
Include your preferred formatting style when you order from us to accompany your paper.
-
Bibliography page
Get a list of references to go with your ordered paper.
-
24/7 support assistance
Reach out to our support agents anytime for free assistance.
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics