Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this in C! Thank you. Your task is to write a program that stores and retrieves structures in a file on disk. The

Please write this in C! Thank you.

image text in transcribed

Your task is to write a program that stores and retrieves structures in a file on disk. The file of structures must remain on the disk once your program ends. You should be able to store structures to the file and retrieve from the file after restarting the program. The record that you will be writing to file has the following structure: first_name_posn, last_name_posn, company_name_posn, and email_posn are the position in the file of the First Name, Last Name, Company Name, and Email variable strings. These "locations" will be required for writing and reading the information to be stored. When you write the structures on disk you will need to store the First Name, Last Name, Company Name, and Email strings separately from the contact structure. In the file you will write the contact structure first followed by the First Name, Last Name, Company Name, and Email strings (if they exist). The only required information is the Phone Number - all other information is optional. The position "next" stores the location in the file where the next contact record is stored. The file can contain any number of records and associated strings. The name of the file will be myContactList.db and if the file does not exist then you program must create it. Interface (input and output) Your program will have an input interface that does the following: Do you wish to enter a new contact (Yes or No)?: First Name: Last Name: Company Name: Phone Number (enter only numbers): Email

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago