In Java lang please. 1. Create a read / write interface: Public methods: Reading from a file-public void read_File(); Sa

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

In Java lang please. 1. Create a read / write interface: Public methods: Reading from a file-public void read_File(); Sa

Post by answerhappygod »

In Java lang please.
1. Create a read / write interface:
Public methods:
Reading from a file-public void read_File();
Save or change to a file-public void write_File(String File);
2. To create a Student class CStudent, implements
Comparable
Hidden member variables:
Name - String;
List of grades Integer - List ;
Faculty number - String;
Public methods:
2.1 Constructors - default, explicit (name, faculty number);
2.2 Reading a name (get);
2.3 To obtain an average score getGrade ();
2.4 Add rating addScore (int score);
2.5 String interpretation;
2.6 Implement Comparable; ;
3. To create a class CCourse designed to store 1-class objects,
implements Comparable and read / write interface
Hidden member variables:
Course name - String;
List of students;

Public methods:
3.1 Constructors - explicit (name of the course); explicit (file
name-String Filename) - see file format;
3.2 implement interface read / write ;
3.3 Reading a course name (get);
3.4 Rating function: addScore (String faculty number, grade
list);
3.5 Adding a group of grades to a student: addScores (String
faculty number, grade list);
3.6 Outputting course results: displayScores () displays an
example output (see bottom);
3.7 Adding a student with name and faculty number to the course:
makeStudent (String faculty number, String name);
3.8 Implement Comparable;
4. Main function:
4.1 Creating several 2-class objects. Output of the objects on the
console output and check of the functions of 2-class;
4.2 Exception handling;
Output:
GROUP1
19620001 STUDENT1 6 5 4 3 5: 4.60
19620002 STUDENT2 5 5 4 4 5: 4.60
19620003 STUDENT3 6 5 5 4 5: 5.00
4.73
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply