0% found this document useful (0 votes)
2 views3 pages

Title Background Program Specifications: Function Details

The document outlines the specifications for a program that manages student data, including input for student names, classes, and marks in Math, Physics, and Chemistry. It classifies students into types based on their marks and displays statistics on the percentage of each type. The program includes functions for inputting student data, calculating averages, and generating classification statistics.

Uploaded by

tolathuyquyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Title Background Program Specifications: Function Details

The document outlines the specifications for a program that manages student data, including input for student names, classes, and marks in Math, Physics, and Chemistry. It classifies students into types based on their marks and displays statistics on the percentage of each type. The program includes functions for inputting student data, calculating averages, and generating classification statistics.

Uploaded by

tolathuyquyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Title

Check student’s data format.


Background
N/A
Program Specifications
Create a program allows input:
o Student information includes: Student name, class name, the marks Math, Physical and Chemistry in the
range from 1 to 10.

Display on screen the information:


o Student Type following the conditions:

 A: mark > 7.5.

 B: 6 <= mark <= 7.5.

 C: 4 <= mark < 6 .

 D: mark < 4.

o Student Type statistics by %.

Function details:

Function 1: Display GUI And Input Data.

 Users run the program. The program prompts users to input Student data.
 When users stop inputting Student data, next Function 2.

Function 2: Perform function

 The program classifies students and gives student rank statistics by %.


 Display notify result of students together with statistic result and exit the program.

Expectation of User interface:


1 2
====== Management Student Program ====== ------ Student1 Info ------
Name:Nghia Name:Nghia
Classes:FU1 Classes:FU1
Maths:11 AVG:10.0
Maths is less than equal ten Type:A
Maths:-1 ------ Student2 Info ------
Maths is greater than equal zero Name:Nghia 2
Maths: Classes:FU1
Maths is digit AVG:10.0
Maths:10 Type:A
Chemistry:11 --------Classification Info -----
Chemistry is less than equal ten A: 100.0%
Chemistry:-1 B: 0.0%
Chemistry is greater than equal zero C: 0.0%
Chemistry: D: 0.0%
Chemistry is digit
Chemistry:10
Physics:11
Physics is less than equal ten
Physics:-1
Physics is greater than equal zero
Physics:
Physics is digit
Physics:10
Do you want to enter more student information?(Y/N):Y
Name:Nghia 2
Classes:FU1
Maths:10
Chemistry:10
Physics:10
Do you want to enter more student information?(Y/N):N

Guidelines

Student must implement the methods

- createStudent

- averageStudent

- getPercentTypeStudent

in startup code.
Suggestion:
Create a class Student contains the following properties:
- Student Name, Class, Math, Physical, Chemistry, Average, Type.

Create a class Mark Calculation, classify students, calculate Student Type statistics, and set the results on Student object.
Give the statistics:
A:? %
B:? %
C:? %
D:? %
Function1: Input student information
o Must create function: Student createStudent(String name, String classes, double maths, double chemistry,
double physics)

 Input:

 name: Student name

 classes: Class.

 maths: Math mark.

 chemistry: Chemistry mark.

 physics: Physical mark.

 Return:

 Student object.

Function 2: Student classification.


o Write Function: List<Student> averageStudent(List<Student> students)

 Input:

 students: the list of students not classified yet.

 Return: the list of students already classified.

Function3: Student Type Statistics.


o Must create function: HashMap<String, Double> getPercentTypeStudent(List<Student> students)

 Input:

 students: the list of students already classified.

 Return: Student Type statistics by % by the key A,B,C, D.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy