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

  We will simulate a very simple network by having a process

we will simulate a very simple network by having a process correspond to a node in the network and files correspond to

  Implement a probability calculator for the standard normal

implement a probability calculator for the standard normal distribution using GUI.

  Compute the temperature in centigrade

Compute the temperature in Centigrade - Display the temperatures in both Centrigrade and Fahrenheit with appropriate labels, using the + operator to concatenate the labels with the variables

  Design a program in pseudocode

Design a program in pseudocode that solves this problem. You are required to generate only the pseudocode - No charting or analysis section is required, but you may have to incorporate the bubble sort algorithm to determine the minimum and maximum..

  Temporarily move to the street so that the

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave

  How to access to elements of document object model

To limit creation of malicious code, do you believe that access to elements of document object model and some Javascript functionality be limited?

  The class overloaded constructor receives a 2-dim int array

The class overloaded constructor receives a 2-dim int array as a parameter and assigns its values to a private 2-dim int array. Have another method that prints the whole 2-dim table.

  Implement bounded partial queue using signaling mechanism

Can you explain the reason? You can run the experiments on ecen5033.colorado.edu. Submit the code as well as experimental results - Implement both these schemes in Java. Each of the methods foo() and bar() just sleeps for 20 milliseconds.

  Create an application that provides a solution

Create an application that provides a solution for problem 20.8 In addition to requirements specified in the description.

  Deadlock and starvation

What is the difference between deadlock and starvation.Explain in a sentence or two how you prevented deadlock in your implementation.

  Design a function named "falling distance"

Design a function named "fallingDistance" that accepts an objects falling time, in seconds, as an argument. The function should return the distance, in meters, that the object has fallen during that time interval. Design a program that calls the func..

  The reference to the abstract class

Explain what happens when the reference to the abstract class X is used to execute method M1( ). X obj = new Y( ); obj.M1( );

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