(JavaFX version) comprehensive experimental Student score analysis program

Source: Internet
Author: User
Content requirements:

The program of Students ' achievement analysis in comprehensive experiment

Type of experiment: Comprehensive

Experiment Objective: To develop a small software system by using the Java language and object-oriented technology synthetically

Experiment Content:

1. It is now known that the final exam results for a course in a class have been stored in a text file.

(1) Description of the filename:

The file name is: "Class name-course name. txt", that is, the primary file name consists of "class name" and "Course name", with the middle "-" connection, and the extension is txt. For example:

Level 2014 Software Engineering Class 8-object-oriented programming. txt

Represents the results of the final examination of "object-oriented program Design" in "Level 2014 Software engineering Class 8" in this file.

(2) file content format:

Each line in a text file stores a student's score, including: number, name, and grade, separated by commas in the middle.

Description: The school number and name is a string, the result is real.

For example: "Level 2014 software Engineering 8 class-object-oriented programming. txt" file to store students in the class object-oriented program design test results. Content is:

201230740801, Zhao Yi, 68

201230740802, Money, two, 82.

201230740803, Sun San, 58

201230740804, Dick, 62

201230740805, Feng, 73

......

2. Function required by experiment:

(1) Reading the examination results of a course in a certain class from a text file.

Finds whether the text file for the specified class exists, based on the class name and course name you entered.

If it does not exist, it prompts for an error message.

If present, all the data in the file is read into memory. and prompts the file to read successfully.

(2) Save the performance data in memory as an object-based binary file.

The program should define the appropriate classes to represent each student's performance and all students ' achievements. and serializing the object file stored in the binary. The primary file name uses the primary file name of the text file, and the extension uses ". Score".

(3) Reading binary object files

Read the binary object file that the program was saved to memory.

(4) Show all transcripts

Requirements: According to the results from high to low output, the results are equal, according to the students from low to high output.

Display in the following way:

Class Name: Level 2014 Software Engineering 8 class

Course Name: Object Oriented Programming

Study Number name score

----------------------------------

201230740801 Zhao 168

201230740802 Bucks, 282.

201230740803 Sun 358

201230740804 Lee 462

201230740805 von 573

......

----------------------------------

Highest Score: 82

Minimum score: 58

Average score: 77.50

(5) Check the students ' test results

Requirements: Can be based on the study number or name of the fuzzy query. Input using unified input.

For example

Input: 3074 to output information for all student numbers or students whose names contain "3074".

Input: Lee, then output all student numbers or names containing "Lee" of the students information.

(6) Interface implementation

The basic requirement is the command-line interface, for example:

1. Read the file file

2. Save As binary object file

3. Reading binary object files

4. Show all achievements

5. Check Student Scores

0. Exit

-----------------------------------


The effect chart is as follows:







Column Analysis diagram


Pie chart



Resources:

1. File Selection window: Javafx.stage.FileChooser

Http://docs.oracle.com/javafx/2/ui_controls/file-chooser.htm

2. Create File menu: Javafx.scene.control.Menu

http://blog.csdn.net/maosijunzi/article/details/43760713

3.JAVAFX create a variety of tables: Javafx.scene.control.TableView

http://ju.outofmemory.cn/entry/17067

Http://www.jb51.net/article/44238.htm

4. Column Chart Javafx.scene.chart.BarChart

Http://docs.oracle.com/javafx/2/charts/bar-chart.htm

5. Pie chart Javafx.scene.chart.PieChart

Http://docs.oracle.com/javafx/2/charts/pie-chart.htm



Source code packages developed by NetBeans:

Link: Https://pan.baidu.com/s/1cOe-PwKVVLZPoWnpzBMXsA Password: kzut



The code is as follows:

[Java] view plain copy package studentsgradesanalyzer;   /** * * @author acerr/import javafx.application.Application;   Import Javafx.scene.Scene;   Import Javafx.stage.Stage;      Import javafx.scene.layout.*; public class Studentsgradesanalyzer extends application{

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.