Prepare worlddataapp project it implements the nameindex

Assignment Help JAVA Programming
Reference no: EM13346790

Prepare WorldDataApp project. It implements the NameIndex portion, including:

• creating it (implemented as a Binary Search Tree (BST)) in SetupProgram, and
• searching, viewing and updating it in UserApp program.

A third program, PrettyPrintUtility, displays the backup index file so the developer (and grader) can easily view the file in a nicely-aligned printout. NameIndex is created as an internal data structure - so in order to "move it" from one program execution to another (i.e., from SetupProgram to UserApp, and from UserApp today to UserApp tomorrow), it is saved and re-loaded to/from a backup file.

So there are 3 physically separate programs, all within a SINGLE Java/C# project:

1. SetupProgram - creates the internal NameIndex based on data in the RawData file - and saves it to the Backup file

2. UserApp - loads the NameIndex from the Backup file, then processes the transactions in Trans file, sending output to the Log file, then saves the index to the Backup file

3. PrettyPrintUtility - reads/prints the Backup file to the Log file

There are 4 data files used in the project:

1. RawDataTester.csv (input to SetupProgram - I'll provide this file)

2. NameIndexBackup.txt (output from SetupProgram, input/output for UserApp and input to PrettyPrintUtility)

3. Log.txt (all 3 programs output to this file)

4. TransData.txt (input to UserApp - I'll provide this file)

Batch processing (vs. interactive processing) is used to facilitate testing and the capture of the programs' executions for submission for grading. That is, all 3 programs write to the Log file, and user transaction requests to UserApp come from the TransData file - rather than the console or a Windows or Web form.

Object Oriented Programming (OOP paradigm) must be used for SetupProgram and UserApp programs. But since it's just a quickie developer-utility program, PrettyPrintUtility just uses the traditional Procedural Paradigm (PP) approach.

So there are 3 classes (besides the 3 main programs):

1. RawData handles all file/record/field handling for the RawData file. It's only used by SetupProgram.

2. NameIndex handles everything to do with the internal name index and its backup file.

This class is used by both SetupProgram and UserApp.

3. UserInterface handles everything to do with batch processing including anything to do with the Log file and the TransData file. This class is used by both SetupProgram (for Logging) and UserApp (for getting TransData and for Logging).

A program is a physically separate chunk of code in its own .java (or .cs) file that contains its own main (or Main) method as the execution starting point. It is independently compile-able and independently executable.

So SetupProgram, UserApp and PrettyPrintUtility can each be run individually by the developer completely on their own. The programs must, of course, be run in the correct order - i.e., SetupProgram must be run before UserApp or PrettyPrintUtility.

OOP - Information hiding

The 3 class NAMES and the PUBLIC METHODS each describe WHAT the object is and its functionality to the "outside world", WITHOUT specifying HOW the underlying storage or interaction will be implemented. The code in the 2 actual programs which use the 3 classes are NOT at all aware of:

WHERE the RawData field values come from (A data file? Interactive users? A database? A bar-code scanner?) nor HOW it was derived (Any transformations? Record-splitting into fields? Field editing after reading from text-boxes? Floats changed to integers? Metric changed to imperial measures? Field-values calculated or read-in from storage?)
HOW the NameIndex data is stored/accessed (a BST? An ordered list? A hash table?) nor whether it's an internal or external structure or even an actual database or the cloud
HOW the UserInterface is implemented (Batch processing? Interactive using the Console? A Windows or Web front end?)

This makes OOP programs easy to change since all code changes are done within the class, with no changes to the main program code (e.g., batch input/output can be changed to a web app by altering the code in UserInterface - NameIndex could be changed to use an external HashFile rather than an internal BST - RawData could be read from a database rather than a data file).

Reference no: EM13346790

Questions Cloud

The so2 concentration in a stack is 400 ppm the stack : the so2 concentration in a stack is 400 ppm the stack diameter is 10 ft and the stack gas velocity is 50 ftsec. the gas
A company makes use of a computerised flat file information : a company makes use of a computerised flat file information retrieval and storage system. the company is experiencing
1 every convergent sequence contains either an increasing : 1 every convergent sequence contains either an increasing or a decreasing subsequence.?proof suppose that limas n goes
Dissect an email you have received first get the original : dissect an email you have received. first get the original ascii text of the email including the headers and the blank
Prepare worlddataapp project it implements the nameindex : prepare worlddataapp project. it implements the nameindex portion includingbull creating it implemented as a binary
The theory of the businessin a thought-provoking article in : the theory of the businessin a thought-provoking article in the septemberoctober 1994 edition of the harvard business
Question security infrastructure and protocols a pki and : question security infrastructure and protocols a. pki and pgp are two methods for generating and managing public keys
Determine several resources available from the small : determine several resources available from the small business administration sba for entrepreneurs that might be useful
Question 1 let npq where pq are primes of the same length : question 1 let npq where pq are primes of the same length and let phi be eulers totient function. consider the

Reviews

Write a Review

JAVA Programming Questions & Answers

  Develop a program that will handle a golfer and his scores

develop a program that will handle a Golfer and his scores. The program will be comprised of two classes: a Golfer class that will manage all the golfer's scores and a Score class.This is a class designed to represent a golfer including his name, hom..

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

  Create an employee class.

Create an Employee class. Items to include as data members are employee number, name, date of hire, job description, department, and monthly salary.

  Javascript program that asks the use

Design a javascript program that asks the user for a username with at least eight characters, beginning with a letter and including at least one digit. Next, write a validation loop to ensure that these conditions have been met

  Sequence of method in vector class

Construct a Vector class implementing a number of vector operations as methods along with a testing program to verify the class is working.

  Reads in up to 1000 non-negative integers

Write a program that reads in up to 1000 non-negative integers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once). (Hint: Read each number and store it in an array if it is new. If the number is alread..

  Modify the scholarship application

Modify the Scholarship application so that if a user enters a grade point average under 0 or over 4.0, or a negative value for either of the activities, an error message appears.

  Write a java program that reads unspecified number

Write a java program that reads unspecified number of integers (the input 0 signifies the end of the input). Calculates and displays the sum and the average of the input value (not counting zero). The program also finds the maximum and minimum of ..

  Creates a professorraing class

Write a program that creates a professorRaing class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfullness, and clarity. In a separate implementation class, allow the user to enter the values.

  Make a fourth button called special

Make a fourth button called "special" that does something else notdescribed in the assignment, such as change the background color.

  Java method for radix sort in binary

java method for radix sort in binary but I want to understand how to do it so please make it as simple as possible

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