Question: This program should be written in C++ only and be able to work on a linux server so no conio.h please Construct relational data models

This program should be written in C++ only and be able to work on a linux server so no conio.h please

Construct relational data models for the information contained in files data1.txt, data2.txt, and data3.txt. Your relational data models must be able to do the following:

1.Insert all information from the data files into a hash table of appropriate size. When inserting, you must ensure that no duplicate entries are inserted

2.For the information in data1.txt, you must construct a secondary index structure for field Class.

3.Implement the selection, projection, and join operations.

data1.txt

Name Class Max_Spell_Level

Andre Sorcerer 3

Andrew Wizard 3

Cesar Sorcerer 8

Craig Bard 5

Danny Wizard 6

David Wizard 5

Ellis Sorcerer 4

Emmett Sorcerer 1

Freddie Sorcerer 2

Gabriel Bard 2

Gary Wizard 5

Gavin Cleric 5

Jack Cleric 2

Jagger Bard 1

James Cleric 4

Jayden Sorcerer 6

Jovani Cleric 1

Kayson Sorcerer 6

Louie Bard 3

Lucca Sorcerer 7

Luke Wizard 7

Nicholas Cleric 4

Oliver Wizard 8

Peter Cleric 5

Phillip Cleric 9

Stanley Cleric 2

Terrence Sorcerer 4

Tyrone Wizard 5

William Bard 6

Zachary Sorcerer 1

data2.txt

Spell_Name Class Level

Alarm Wizard 1

Augury Cleric 2

Awaken Bard 5

Banishment Cleric 4

Bless Cleric 1

Blur Sorcerer 2

Blur Wizard 2

Clone Wizard 8

Confusion Sorcerer 4

Confusion Bard 5

Confusion Cleric 4

Confusion Wizard 4

Contingency Wizard 6

Cure_Wounds Cleric 1

Daylight Cleric 3

Earthquake Cleric 8

Earthquake Sorcerer 8

Earthquake Wizard 9

Enthrall Bard 2

Etherealness Cleric 7

Eyebite Bard 6

Eyebite Sorcerer 6

Eyebite Wizard 7

Fabricate Wizard 4

Fear Bard 3

Fear Sorcerer 3

Fear Wizard 3

Fireball Sorcerer 3

Fireball Wizard 3

Forcecage Wizard 7

Geas Bard 5

Geas Cleric 5

Geas Wizard 5

Hallow Cleric 5

Harm Cleric 6

Haste Sorcerer 3

Heal Cleric 6

Heroism Bard 1

Identify Bard 1

Jump Sorcerer 1

Jump Wizard 1

Knock Sorcerer 2

Knock Wizard 2

Magic_Missile Sorcerer 1

Mass_Heal Cleric 9

Maze Wizard 8

Mislead Wizard 5

Mislead Bard 4

Passwall Wizard 5

Polymorph Bard 4

Polymorph Sorcerer 5

Regenerate Cleric 7

Sending Cleric 3

Sending Wizard 3

Shatter Bard 2

Shatter Sorcerer 2

Shatter Wizard 2

Silence Bard 2

Silence Cleric 2

Sleep Bard 1

Sleep Sorcerer 1

Sleep Wizard 1

Slow Wizard 3

Slow Bard 2

Stoneskin Wizard 4

Sunbeam Wizard 6

Sunbeam Cleric 6

Sunburst Sorcerer 8

Sunburst Cleric 7

Telekinesis Sorcerer 5

Telekinesis Wizard 5

Teleport Sorcerer 7

Teleport Wizard 7

Thunderwave Wizard 1

Tongues Bard 3

Tongues Cleric 3

Wish Sorcerer 9

Wish Wizard 9

data3.txt

Spell_Name Type

Alarm Abjuration

Augury Divination

Awaken Transmutation

Banishment Abjuration

Bless Enchantment

Blur Illusion

Clone Necromancy

Confusion Enchantment

Contingency Evocation

Cure_Wounds Evocation

Daylight Evocation

Earthquake Evocation

Enthrall Enchantment

Etherealness Transmutation

Eyebite Necromancy

Fabricate Transmutation

Fear Illusion

Fireball Evocation

Forcecage Evocation

Geas Enchantment

Hallow Evocation

Harm Necromancy

Haste Transmutation

Heal Evocation

Heroism Enchantment

Identify Divination

Jump Transmutation

Knock Transmutation

Magic_Missile Evocation

Mass_Heal Evocation

Maze Conjuration

Mislead Illusion

Passwall Transmutation

Polymorph Transmutation

Regenerate Transmutation

Sending Evocation

Shatter Evocation

Silence Illusion

Sleep Enchantment

Slow Transmutation

Stoneskin Abjuration

Sunbeam Evocation

Sunburst Evocation

Telekinesis Transmutation

Teleport Conjuration

Thunderwave Evocation

Tongues Divination

Wish Conjuration

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!