Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please read carefully. If you provide the correct solution, you'll receive multiple thumbs up. There are a lot of people who need this in my

Please read carefully. If you provide the correct solution, you'll receive multiple thumbs up. There are a lot of people who need this in my class. Make sure your output file has the exact same content as the one posted in the assignment below. Also, take your time. No need to rush. I would suggest posting a solution and editing it to the correct solution as you go.

image text in transcribed

image text in transcribed

image text in transcribed

This is an example of what the input.txt file and command.txt file will contain, and what the output.txt file SHOULD contain.

Ignore the commandline thing.

image text in transcribed

1. Introduction You will create a C++ program to manage a database. Read a file that has a lot of items that stand for the information of a name list of certain class. You will need to add into the database and you will also need to delete records in the database. Then sort the records by specific attributes to alphabetical ascending order, and output to a plain text file. 2. Input and Output a. Input file 1) The input file has multiple records (number>1). Your program should read the records one by one from the beginning of the file to the end. Each record has uniform attributes (columns), the attributes appear in a fixed order, a record should contain all the keys, no empty values part will be given. But the input file may contain duplicated records. If two records have same id value, they can be recognized as duplicated records. You should NOT update record with the latter one. Other than useful information in records, no other character or space will be given. 2) 3) Each record takes one line (ends in n), and one line only contains one record. 4) The id value always uses 5 digits. DOB values always with the format MM 1. Introduction You will create a C++ program to manage a database. Read a file that has a lot of items that stand for the information of a name list of certain class. You will need to add into the database and you will also need to delete records in the database. Then sort the records by specific attributes to alphabetical ascending order, and output to a plain text file. 2. Input and Output a. Input file 1) The input file has multiple records (number>1). Your program should read the records one by one from the beginning of the file to the end. Each record has uniform attributes (columns), the attributes appear in a fixed order, a record should contain all the keys, no empty values part will be given. But the input file may contain duplicated records. If two records have same id value, they can be recognized as duplicated records. You should NOT update record with the latter one. Other than useful information in records, no other character or space will be given. 2) 3) Each record takes one line (ends in n), and one line only contains one record. 4) The id value always uses 5 digits. DOB values always with the format MM

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago