text to sql syntaxMon, 27 Mar 2023

let's build a class SinhVien with the attributes of students created by them come up with (must list at least 3 properties), in addition the class has 4 more properties about The scores are: theory score, practical score, midterm (exam) score and final (exam) score. Besides, when any student object has just been created, the initial value of the score columns are equal to 0 Then write a program that uses the above student class and has the functions data entry for students (enter values for attributes); calculate the average score of students members (20% theory + 20% practice + 20% midterm + 40% final) and information export of students on the screen. In addition, the program must have getter and setter methods to get and set the value for all member properties of the object in java

package student; public class SinhVien { public String name; public int age; public String gioiTinh; public double theory; public double practice; public double mid; public double final_; public double getTheory() { return theory; } public void setTheory(double theory) { this.theory = theory; } public double getPractice() { return practice; } public void setPractice(double practice) { this.practice = practice; } public double getMid() { return mid; } public void setMid(double mid) { this.mid = mid; } public double getFinal_() { return final_; } public void setFinal_(double final_) { this.final_ = final_; } public double calculateAverage() { return (theory*0.2) + (practice*0.

Questions about programming?Chat with your personal AI assistant