Skip to main content

Java Program to Make Student Progress

Student Progress





The First Class is Student Class:-  

public class Student {

private string first_name;
//private String last_name;
private string father_name;
private string Address;
private string chem_marks;
private String phy_marks;
private String bio_marks;
private String math_marks;
private String eng_marks;

public Student(string first_name,String father_name , String Address , String chem_makrs , String phy_marks , String bio_marks , String math_marks , String eng_marks )
{

super();

this.first_name = first_name;
this.father_name= father_name;
this.Address = Address;
this.chem_marks= chem_marks;
this.phy_marks= phy_marks;
this.bio_marks= bio_marks;
this.math_marks= math_marks;
this.eng_marks= eng_marks;

}




public String getFirst_name() {
return first_name;
}
public void setFirst_name(String first_name) {
this.first_name = first_name;
}
/*public String getLast_name() {
return last_name;
}
public void setLast_name(String last_name) {
this.last_name = last_name;
}**/
public String getFather_name() {
return father_name;
}
public void setFather_name(String father_name) {
this.father_name = father_name;
}
public String getAddress() {
return Address;
}
public void setAddress(String address) {
Address = address;
}
public String getChem_marks() {
return chem_marks;
}
public void setChem_marks(String chem_marks) {
this.chem_marks = chem_marks;
}
public String getPhy_marks() {
return phy_marks;
}
public void setPhy_marks(String phy_marks) {
this.phy_marks = phy_marks;
}
public String getBio_marks() {
return bio_marks;
}
public void setBio_marks(String bio_marks) {
this.bio_marks = bio_marks;
}
public String getMath_marks() {
return math_marks;
}
public void setMath_marks(String math_marks) {
this.math_marks = math_marks;
}
public String getEng_marks() {
return eng_marks;
}
public void setEng_marks(String eng_marks) {
this.eng_marks = eng_marks;
}

}


The  Second Class is Main to execute the Code :-


public class Main4
{
// static Student st;
public static void main(String[] args)
{
Student  st= new Student("","","","",0,0,0,0,0);
    Scanner scn = new Scanner(System.in);
st.setFirst_name(scn.next());
st.setFather_name(scn.next());
st.setAddress(scn.next());
st.setChem_marks(scn.nextInt());
st.setPhy_marks(scn.nextInt());
st.setBio_marks(scn.nextInt());
st.setMath_marks(scn.nextInt());
st.setEng_marks(scn.nextInt());
st.print();


}

}`





Keep Sharing !

Comments

Popular posts from this blog

a speculative study of bscs

BSCS STUDENTS AND A CONTEMPORARY FIELD: A SPECULATIVE STUDY TABLE OF CONTENTS EXECUTIVE SUMMARY……………………………………………………………………….4 HISTORY…………………………………………………………………………………………5-6 MODERN TRENDS………………………………………………………………………………7-8 INTRODUCTION…………………………………………………………………………………8 PROCEDURES……………………………………………………………………………………8 METHADOLOGY--------------------------------------------------------------------------------------------9 THEORY OF COMPUTER SCIENCE--------------------------------------------------------------------9 THEORY OF COMPUTATION----------------------------------------------------------------------------10 ALGORITHAM & DATA STRUCTURE-----------------------------------------------------------------10 PROGRAMMING LANGUAGE THEORY---------------------------------------------------------------10 FINDINGS…………………………………………………………………………………………11-14 ANALYSIS………………………………………………………………………………………..15 RECOMMENDATIONS………………………………………………………………………….15 CONCLU...

Technology

Virtual Reality The Next Upcoming Domain in Pakistan is VIRTUAL REALITY and people are making themselves obsessed with it because it takes your imagination to what you are seeing through VR gadget as we know the technology is going to boom in Pakistan through last few years.

Cricket Match

Finally International Cricket again hit the Grounds of Pakistan  Now in Pakistan the Best thing is to about the start of International cricket. Finally the cricket hits the Ground of Pakistan with this phase of  WORLD IX vs PAKISTAN. The schedule is for three days continuous 12 , 13 , 14 September 2017. The all matches will be play in Gaddafi Stadium Lahore , as a FINAL of PSL 02 was also held there.The recent picture is as shown below from Lahore Stadium Cricket is one of the most favourite game of Pakistani's and we love cricket more than our National game because all we like to say that         ↪ "YAR CRICKET LOVE HAI''  We Pakistani's consider to be the most craziest fan's of CRICKET. As we are also moving towards PSL 03 and all the matches are probably be going to Play in Pakistan. The more is coming to pakistan with the passage of time we are moving forward to Meet the International Cricket Standards. Wish All the Be...