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

Calculate your order
275 words
Total price: $0.00

Top-quality papers guaranteed

54

100% original papers

We sell only unique pieces of writing completed according to your demands.

54

Confidential service

We use security encryption to keep your personal data protected.

54

Money-back guarantee

We can give your money back if something goes wrong with your order.

Enjoy the free features we offer to everyone

  1. Title page

    Get a free title page formatted according to the specifics of your particular style.

  2. Custom formatting

    Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.

  3. Bibliography page

    Don’t pay extra for a list of references that perfectly fits your academic needs.

  4. 24/7 support assistance

    Ask us a question anytime you need to—we don’t charge extra for supporting you!

Calculate how much your essay costs

Type of paper
Academic level
Deadline
550 words

How to place an order

  • Choose the number of pages, your academic level, and deadline
  • Push the orange button
  • Give instructions for your paper
  • Pay with PayPal or a credit card
  • Track the progress of your order
  • Approve and enjoy your custom paper

Ask experts to write you a cheap essay of excellent quality

Place an order