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

DTN

The word business is for them who use it in a efficient way to make a better way for their earning but now a days we don't consider a business who don't have their online presence because the people prefer online shopping rather then to go out for shopping because it requires time.So, that's why customers who do online shopping are more considerable to make your market better. In the same context   DTN founded to sell a quality authentic jadeite bangles now moving to digital landscape of shopping. Below are the details of their initiative which was initiated in 2004 DTN is found just recently, a merger between DDJADE and DTN . They sell good quality authentic jadeite bangles since 2014. Now, they are expanding it to technology products. Their vision and motto is selling good quality and authentic goods at fractional cost compared to big companies DDJADE was founded in 2014 with the mind set of providing authentic jade bangle, bracelet, silver and...

Graphic designing

Adobe Photoshop: The Best thing in this software is this it is a Collection of built in features and has more editor effect to use in its own way. You can also edit 2D and 3D animation in it and make it easy for Editing you can make Logos , Flyers , header all sort of things you have grip on.. Its has a proper suit for its users. The Adobe Photoshop is the Best app for editing Pictures either they are simple or high definition. Adobe Suit has more features more than we think and assume. The Best Graphic designer is used to from this that he or she will have much work for them they are in finding that SOFTWARE which make them easy to work for many hours. Are you curious to know about more ? https://blog.retouchmypic.com/professional/2017/09/19/5-ways-how-photoshop-changed-the-world/  Do Visit this Blog to know about the Photoshop Hacks  Keep Sharing !

Kashmir

Kashmir The Heaven on Earth  Kashmir is considered one of the part of Paradise on earth because of its beautiful landscape and hilly mountains which makes it different from other northern areas in Pakistan !  Here is the Video Link of some beautiful landscape of Kashmir