Create a student object based on the information given

Assignment Help JAVA Programming
Reference no: EM13945363

After hearing the excellent job you have done designing software solutions for entities in and around campus, your work comes full circle when the University of Florida English department asks you to create an autograder for its introductory class. There are many types of students who are taking this class. Some are high-achieving high school students, some UF undergraduate students, and some graduate students who need a refresher. They would like to create a parent object that can be extended to provide functionality for a number of kinds of students. The department would also like to have the ability to supply the name of a file containing an essay (as a numeric ID) and have you grade the essay, by deducting an appropriate number of points for every word that is misspelled. After reading in the UF ID, which you will use to open the correct essay file, you will create an output file that contains the student's grade.

Objective

Read in the file given

Count the number of misspelled words

Deduct points accordingly for each misspelled word.

-1 High School Student, -3 College Student, -5 Graduate Student

Generate an output file that contains the student's graded output

Your Assignment

You will need to create five files complete this project and name them exactly as follows: Project5.java, Student.java, HighSchoolStudent.java,UndergraduateStudent.java, and GraduateStudent.java. TheProject5.java file will be the only file to contain a main() method. Each of the .java files and their associated classes are described below:

The Student Class

The Student class, which is stored in Student.java, will act as your parent class from which the different types of students will be derived from. This class must have the following members:

Fields for the following attributes

Name
ID Number

"Getter"/"Setter" methods for each attribute

public String getName()
public void setName(String n)
public String getIDNumber()
public void setIDNumber(int id)

A method that will return a String of all of the attributes for this object

public String toString()

An appropriate constructor

The constructor must initialize both fields of the Student object with the constructor's parameters public Student(String n, int id) The HighSchoolStudent ClassThe HighSchoolStudent class, which is stored in HighSchoolStudent.java, will be a child class of the Student Class.

This class must have the following members:

A field for the following attribute

Name Of School

A "getter" and "setter" method for this attribute

public String getNameOfSchool()
public void setNameOfSchool(String schoolName)

A method that will return a String of all of the attributes for this object

public String toString()

An appropriate constructor

The constructor must initialize both fields of the Student object with the constructor's parameters public HighSchoolStudent(String n, int id, String schoolName) The UndergraduateStudent ClassThe UndergraduateStudent Class, which is stored inUndergraduateStudent.java, will also be a child class of the Student Class. This class must have the following members:

A field for the following attribute

Major

A "getter" and "setter" method for this attribute

public String getMajor()
public void setMajor(String major)

A method that will return a String of all of the attributes for this object

public String toString()

An appropriate constructor

The constructor must initialize both fields of the Student object with the constructor's parameters public UndergraduateStudent(String n, int id, String major) The GraduateStudent ClassThe GraduateStudent Class, which is stored in GraduateStudent.java, will be the final child class of the Student Class. This classmust have the following members:

Fields for the following attributes

Major

Advisor

"Getter"/"Setter" methods for each attribute

public String getMajor()
public void setMajor(String major)
public String getAdvisor()
public void setAdvisor(String advisor)

A method that will return a String of all of the attributes for this object

public String toString()

An appropriate constructor

The constructor must initialize both fields of the Student object with the constructor's parameters public GraduateStudent(String n, int id, String major, String advisor)The Project5 ClassThe Project5 Class, which is stored in Project5.java, will hold the main method of your program. Your main method will first read in the words that make up your dictionary from a file, and will then create different Student objects based on the files that your program will read from. Your program will then grade the essay that the student has written. Your program should handle FileNotFoundException and print to the console as shown in the sample below!

Your main method will prompt the user to specify the file that hold the dictionary information. You will then attempt to open the file and input the contents of the file into an array to be used by the remainder of your program.

Your program will then ask the user to specify the name of the file that holds the student information. You will then attempt to open the file, create a Student object based on the information given in the file and read the student's essay from the file.

The first line in the file will identify the classification of the student (High School, Undergraduate, or Graduate)

The following lines will supply the values for the attributes of the specific classification, such as Name, ID Number, and Name Of School for a High School Student.

The remainder of the file will be the essay that the student has written.

After everything is read from the student file, your program will grade the essay and output the result to a new file.

You will read though the essay and determine whether or not a word is misspelled. If a word is misspelled, deduct the appropriate number of points from the student's grade. The grade cannot be negative!

Reference no: EM13945363

Questions Cloud

Which of the following about a capitalist system is correct : Which of the following about a capitalist system is correct? Consider two used-car dealers: Bob's Better Wheels and Dewey, Cheatum, and Howe Motors. Their prices are basically the same for similar vehicles even as their advertising screams that the..
What is the break-even EBIT : Rise Against Corporation is comparing two different capital structures: an all-equity plan (Plan I) and a levered plan (Plan II). Under Plan I, the company would have 170,000 shares of stock outstanding.  What is the break-even EBIT?
What differences between the muslim sunni and shitte sects : What are the major differences between the Muslim Sunni and Shitte sects and how does this their split influence modern Islamic relations in the Middle East and elsewhere?
What are unique differences between baptists and methodists : What are the unique differences between the various Protestant Denominations? a. Baptists, b. Methodists
Create a student object based on the information given : You will then attempt to open the file, create a Student object based on the information given in the file and read the student's essay from the file.
Diagram the interaction between the client and the server : Explain the process that occurs between a client and Web server by describing the functionality of the OSI reference model
Research a particular, authentic company : This is a 14 page paper that must include a title page, table of contents, Abstract, and organizational setting. For the Integrative Learning Project (ILP), you will choose to research a particular, authentic company/industry or a fabricated compa..
Difference between immediate context, book context : How important is "literary context" to understanding the Bible properly? What are several principles that I could use to guide me in my practice of interpretation?
Prepare a paper describing what office automation : Include an analysis of the advantages and disadvantages of each software used.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a java application

Create a Java application named DistanceCalculator.java to solve the following problem. An application is needed to allow a user to enter two cities and display the distances between them.

  Implement a javascript program for the validation case

Write a JavaScript program for the validation case using the RegExp method - implement a JavaScript program for the validation case

  Produces a simple formatted report

For this lab you will write a Java program that produces a simple formatted report. The program will prompt the user to enter a file name. This file must contain information in a specific format (detailed below)

  Write a java program that declares an array alpha

Write a java program that declares an array alpha to 50 elements of type double. Initialize the array so that the first 25 numbers are equal to the square of the index variable, and the last 25 elements are equal to 3 times the index variable. Output..

  Java code using jframe

Write a Java code using JFrame. This code needs to manipulate 4 shapes(2 rectangles and 2 squares) in a 400x400 JFrame. This needs to manipulate the shapes in 3 different ways, using 3 different methods. One for translating a shape, one for proportio..

  Write a java applet not application

Ask user enter the three pieces of information below and compute the result by using the following formula:

  Assignment 1java tic-tac-toe game assignment 1 is

assignment 1java tic-tac-toe game assignment 1 is attachedattachment-nbsptic tac toe game.docxthis assignment consists

  Write a recursive method to print all permutations of string

Write a recursive method to print all the permutations of a string. For instance, for a string abc, the printout is: abc acb bac bca cab cba

  Write an expression that concatenates the string variable

Write an expression that concatenates the string variable suffix onto the end of the string variable prefix.

  Program of javascript

Black Dot Printing is attempting to organize carpools to save energy. Each input record contains an employee's name and town of //residence.

  Mutator method for every instance variable of a class

Is it required to provide an accessor and/or mutator method for every instance variable of a class? If yes, explain why this is required, and if no, explain why not.

  Implement a method with signature transfer

Implement a method with signature transfer(S, T) that transfers all elements from stack S onto stack T, so that the element that starts at the top of S is the first to be inserted onto T, and the element at the bottom of S ends up at the top of T...

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