Main method to test a student graduate record examination

Assignment Help JAVA Programming
Reference no: EM13941031

I need a Java solution named TestGRE.java with a main method to test a Student Graduate Record Examination Score Managment System using BinarySearchTree java classes.

The solution should use the attached Student class.

Also, sample input that can be used is contained in the attached StudData.dat file.

The TestGRE should return the following when run from the command line:

C:JavaBinSearchTree>java TestGRE
Please Enter a valid FileName: StudData.dat

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 4
Choose a traversal order:
1: Preorder
2: Inorder
3: Postorder
3
The tree in Postorder is:
Brown in NJ earns 89 verbal, and 67 quantitative.
Arnold in VA earns 77 verbal, and 88 quantitative.
Thompson in NY earns 99 verbal, and 99 quantitative.
John in VA earns 89 verbal, and 89 quantitative.
Conner in NY earns 98 verbal, and 100 quantitative.
Smith in MD earns 89 verbal, and 89 quantitative.

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 2
Enter Student's Name to remove: Arnold
Verbal Score: 77
Quantitative Score: 88
State: VA
remove(Arnold, 77, 88, VA) returns true

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 4
Choose a traversal order:
1: Preorder
2: Inorder
3: Postorder
3
The tree in Postorder is:
Brown in NJ earns 89 verbal, and 67 quantitative.
Thompson in NY earns 99 verbal, and 99 quantitative.
John in VA earns 89 verbal, and 89 quantitative.
Conner in NY earns 98 verbal, and 100 quantitative.
Smith in MD earns 89 verbal, and 89 quantitative.

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 3
Enter Student's Name to add: Arnold
Verbal Score: 77
Quantitative Score: 78
State: CT

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 4
Choose a traversal order:
1: Preorder
2: Inorder
3: Postorder
2
The tree in Inorder is:
Arnold in CT earns 77 verbal, and 78 quantitative.
Brown in NJ earns 89 verbal, and 67 quantitative.
John in VA earns 89 verbal, and 89 quantitative.
Thompson in NY earns 99 verbal, and 99 quantitative.
Smith in MD earns 89 verbal, and 89 quantitative.
Conner in NY earns 98 verbal, and 100 quantitative.

Choose an operation:
1: contains (string)
2: remove (string)
3: add (string)
4: print (traversal order)
9: stop Testing

Enter choice: 9

C:JavaBinSearchTree>

Now I just need the following missing code to test this system, and to make this all work:

import java.util.*;
import java.util.Scanner;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.File;
import java.io.IOException;

public class TestGRE
{
public static void main(String[] args) throws IOException
{

Reference no: EM13941031

Questions Cloud

Design a dynamic programming algorithm : Assume that at a station ti takes 2 hours to change horses and a horse takes (x ln x)/100 hours to travel x miles. Design a dynamic programming algorithm to determine a sequence of stations at which to stop so as to minimize the total hours.
Discuss the three aspects of the decision process : Assume a person wishes to convince their state legislators that a particular law needs to be enacted. Discuss the three aspects of the decision process (planned redundancy, disjointed decision-making, and communication styles) and how this person ..
Critically assess the operational methods and strategies : Looking at your company at organizational level or department level critically assess the operational methods and strategies adopted to provide the product in a way that gives maximum satisfaction to the customers and clients.
Second actual fundraising activities : All staff members are required to participate in fundraising. This particpation will take two forms. In the first place there is planning and preparation and in the second actual fundraising activities. In order to succesfully complete these tasks..
Main method to test a student graduate record examination : I need a Java solution named TestGRE.java with a main method to test a Student Graduate Record Examination Score Managment System using BinarySearchTree java classes.
Supplier of office equipment for business : OES LTD is a manufacturer and supplier of office equipment for business. Originally, a family owned business, is now employing over 100 employees with three owners: Joan Smith (Head of Accounts), Peter Saunders (Sales and Marketing) and Raj Kang (..
Produce a personal development plan : Critically reflect on learning across the programme and produce a personal development plan (Initial Self Assessment, R, PDP)
Presenting the survey methodology-sampling frame : Create a plan for primary and secondary data collection with presenting the survey methodology & sampling frame used. Design a questionnaire to collect data and provide a justification for its design
Importance of communication during the incident : 1. Use Driscoll's 2000 model (what, so what and now what) of reflection as a framework to this patch. 2. Outline the incident briefly and upon the importance of communication during the incident. 3. Include theories of communication appropriate to th..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a two dimensional integer array in java

Create a two dimensional integer array in JAVA that produces the sum of rows and columns as selected by the user.

  How do you create a class in java to enable its object

How do you create a class in Java to enable its object to be persistent and what are Java data streams and how are they used to facilitate storage and retrieval of persistent objects?

  How many states are there and draw and label the states

How many states are there and draw and label the states (with variable values) and transitions (with method names). Notice that all of the methods are total.

  Write a mathematical recursive definition

Write a mathematical, recursive definition of p(n) - Prove that your answer to Part a is correct by using mathematical induction.

  Using the java development kit and jgrasp

Using the Java Development Kit and jGrasp, develop a program in response to the following prompt:

  The department of community affair- jail report

The Department of Community Affairs (DCA) for the State of Georgia performs many functions including gathering statistics and doing research. DCA provides a monthly jail report that provides some interesting information about jails in the state.

  Create a package called people

Create a second package called ‘task01'. Within this package provide classes which perform the following tasks.

  Write a program that reports the comparison for all models

Write a program that reports the comparison for all models represented in the data file in a table, reporting: the number of each model installed; the total uptime, the total number of failures, and the overall MTBF.

  Write an employee payroll program

Write an employee payroll program that uses polymorphism to calculate and print the weekly payroll for your company. There are three types of employees - hourly, salaried, and salaried plus commission. Each type of employee gets paid using a diffe..

  Represent one book in java

Represent one book in java

  What is the purpose of the enableevents method

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1? What is the purpose of the enableEvents() method?

  Write a class that reads a file

In java, write a class that reads a file and outputs a list of the unique words in the file and the number of times each unique word occurs.Hint: use a HashMap with keys being the words and values being integer counts associated with the words.

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