Develop a simple database system

Assignment Help Database Management System
Reference no: EM131951994

Assignment

For this assignment you will develop a simple database system. The database is to handle multiple records, each composed of several fields. The database will store its information to a file, addition and deletion of records, field modifications, and it will allow users to sort records based on the selected keys, and produce reports (output) according to predefined criteria.
Some definitions:

1. A database is a collection of information, or data, that you can organize, update, sort, search through, and print as needed. A database does not just hold information; you use a database to organize and analyze information so that you understand its significance.

2. A database file consists of one or more records. Each record holds all the information about one subject item. In C++, the class data type provides an efficient way to represent and manipulate records.

3. Each piece of information in a record is called a field. Fields store the data that has been entered or calculated. In C++, fields are nothing more than the member variables defined for a particular class.

Requirements

Given the requirements as a rough specification, you are to design the classes and implement the database. So you can consider the requirements below as an outcome from a meeting with a client. You are in full control of the choice of data structures (except the main data structure of a Binary Search Tree, more detail below), algorithms, internal file format, and detailed user interface scheme.

Requirements are listed with R:

You are designing and implementing a database for the Academy Award winners.

R1/R2: You are to read in information from two files.

R1: You will read in actor-actress.csv which is formatted as a csv file (Ask the user for the file name). Then place the items in a Binary Search Tree, sorted by name.

This is a common format and is comma separated (instead of being on separate lines). So you will have comma's between the values. Blank values will just have a comma noting to go to the next field. (so you may have value,, indicating a blank field.) Each line ends in a newline, not a comma. If you want to view the file, often this will be opened by a spreadsheet unless you specifically open it with a text editor. Do not open it with Microsoft Word, as this may change the format. Consider using getline with three parameters, as an easy way to read in files The first line of a CSV file notes the data descriptions as follows:

Year,Award,Winner,Name,Film

The Winner field has a one if they won and a zero if they did not win.

R2: Then you will read in information about the movies (called pictures by the Academy of Motion Pictures) that have won best picture award. Place these items in a Binary Search Tree, sorted by name. This is also formatted as a .csv file

The first line of pictures.csv contains the data fields including:
name,year,nominations,rating,duration,genre1,genre2,release,metacritic,synopsis

R3/R4: Choose either the movie or actor database and add a record

R5/R6: Choose either the movie or actor database, search for a record, and modify the fields.

R7/R8: Choose either the movie or actor database, search for a record and delete the fields.

R9/R10: Choose either the movie or actor database andsort by any single (sortable) field

R11/R12:Choose either the movie or the actor database and do a complete search on any "complete" searchable field. It is unlikely that you would have an exact match on an entire description, so that would not be listed to search.

R13/R14: Choose either the movie or the actor database and do a partial search on any searchable field. A partial search is any substring within a field.

R15/R16:Choose either the movie or actor database, ask for a file name, and print out a .csv file of the latest database (after adds, deletes or modifies). Remember that the first line of a .csv file lists the name of the fields separated with commas, ending in a newline. Then the following lines are the information from the fields separated with commas, ending in a newline.

Database overall management

1. Use a text based menu for users to choose available features. Program should have a main menu at the beginning and sub menus depending on the task.

2. Each component of the overall program should be fairly modular.

a. Each menu item, for example, should be a separate function. The menu feature should be handled by a separate function and not by main( ).

Program should be fairly fault tolerant of user input (both when the user is entering data, and making menu choices). Provide appropriate user prompts and on-screen directions

Split the program into multiple files based on the roughly categorized functionality.

Data Retrieval and Modification

1. Users should be able to search records based on the field information in two modes: exact and contains. For example, search "Justin". Then under the search sub menu, users have to pick the search mode (exact or contains) and the field. (Fields should be listed out in another menu, so the user doesn't need to remember a specificfield name.

2. Quite often, searches may generate a relatively big output. Users should be able to search again within the search result (secondary search) or start all over again from scratch (new search).

3. Since the entire data is structured in a Binary Search Tree of names, any search (except name of movie or actor) will have to traverse the entire tree and search through the designated fields in every node of the tree.

4. There should be no restriction to the number of records in the database. So, in other words, you should not consider a fixed array for the record data structure.

Attachment:- Assignment.zip

Reference no: EM131951994

Questions Cloud

Calculate dane accounting profits : a. Calculate Dane's accounting profits b. Calculate Dane's economic profits
How the report should be presented and to whom : The final assignment is a paper that describes each of the steps necessary to conduct marketing research based on a specific marketing research problem.
What impact does contracting with a private firm have : What impact does contracting with a private firm have on governmental liability for the violation of inmates' constitutional rights? Explain.
In this example the price is not flat : In this example the price is not flat with changing the volume, so it shouldn't be a competitive industry. Correct?
Develop a simple database system : For this assignment you will develop a simple database system. The database is to handle multiple records, each composed of several fields.
What ahas or insights did you gain through your analysis : MKTG 370 Specifically, this assignment asks you to minutely analyze the Kellogg's Corn Flakes packages from two different countries.
Identify hirschis four elements of social bonding : Identify Hirschi's four elements of social bonding. How does his social bonding theory differ from his social control theory?
Price and equilibrium quantity of caviar : Explain the effects on the market for caviar. What do you expect will happen to the price and equilibrium quantity of caviar?
Were the bombings avoidable : Were the bombings avoidable? If so, what could federal, state and local authorities have done differently to prevent the attack?

Reviews

Write a Review

Database Management System Questions & Answers

  Verify the values inserted by using a query

Write INSERT statements for adding the following data to the new table: Verify the values inserted by using a query. Display each distinct agency (each agency only once)

  Create a database for the application

Perform the following tasks to create the database required for the application: Create a database for the application.

  Centralized versus decentralized database management systems

Centralized versus Decentralized Database Management Systems.Identify a business that has between 5 and 25 locations. Please respond to the following in not more than 250 words:· Evaluate whether this business should adopt a centralized or di..

  Suggest at least two types of databases that would be useful

Suggest two types of databases that would be useful for small businesses, types for regional level organizations and types for internationally wide companies.

  Compares and contrasts design method for database management

The chief information officer (CIO) has asked you to choose any methodology to summarize the electronic data interchange (EDI), Compares and contrasts design methods for database management

  Describe the data and reports

Describe the data and reports that could be used to help The treasurer decide how to invest the company's money.

  Identify potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database. Design a database solution and the potential business rules that could be used to house the sales transactions of the department store

  Functional dependency explain the difference between

explain the difference between functional dependencies that arise from equations and those that do

  Determine probability that the patient has metastatic cancer

Given that a patient has severe headache, has a brain tumor, not in coma and does not have symptoms of increased serum calcium, determine the probability that the patient has metastatic cancer.

  Determine steps in development of an effective erm diagram

Determine the steps in development of an effective ERM Diagram and determine possible iterative steps / factors that one must consider in this process with consideration of HR core functions and responsibilities of the client.

  What is difference between physical and logical data model

What is the difference between a conceptual, a logical, and a physical data model? Where do relationship diagrams (RDs) and entity/relationship diagrams (ERDs) fit in?

  State the interpretations in non-technical terms

What do you infer from the statistical analysis? State the interpretations in non-technical terms. What information might lead to a different conclusion?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd