Create a class named student. a student has fields for an id number, number of credit hours earned, and number of points earned. (for example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an a is worth 12 points.)

Answers

  • Réponse publiée par: kateclaire

    public class Student(){

    String idNumber;

    int hoursEarned, pointsEarned;



    public Student(String id){

     hoursEarned = 0;

     pointsEarned = 0;

     idNumer = id;

    }



    public int getHours(){

     return hoursEarned;

    }


    public int getPoints(){

     return pointsEarned;

    }


    public void addHours(int hours){

     hoursEarned += hours;

     addPoints(hours);

    }


    private void addPoints(int hours){

     int toAdd = SCALE * hours;  //scale would be the desired scale

     pointsEarned += toAdd;

    }

    }


    Hopefully I didn't make any mistakes

     

  • Réponse publiée par: alexespinosa

    wjejsj the angle TOS I didn't have to be in your habik I didn't have a nice evening with me to be in a bit I am not sure how antibiotics for the same price and subject to a new house and subject line and I will be there in the last few weeks and then I am sorry I didn't have my name on the list and I am going to be a little more than a few days ago and it was a pleasure to fill in the last two isosceles the angle TOS the best time for a call you robo call you robo call you robo call you robo call you robo call you robo call you robo call me back when she was very excited and subject of this for you to come to know about your neighborhood to be there for a long walk in your neighborhood and respective person and you robo to do it on a different .

  • Réponse publiée par: sherelyn0013

    /

    * Student.java *

    /

    public class Student

    {

       int sid;

       int credithours;

       int points;

       double averagegrade;

     // constructor to assign initial values

       public Student() {

           this.sid = 9999;

           this.credithours = 3;

           this.points = 12;

       }

     // methods to assign values to all fields.

       public void setCredithours(int credithours) {

           this.credithours = credithours;

       }

       public void setPoints(int points) {

           this.points = points;

       }

       public void setSid(int sid) {

           this.sid = sid;

       }

     // method to compute the grade point average field by dividing points by credit hours earned.

       public void computeAveragegrade()

       {

           this.averagegrade = this.points / this.credithours;

       }

     // methods to display the values in each Student field

       public void showSid(){

           System.out.println("Student id is : " + this.sid);

       }

       public void showPoints(){

           System.out.println("Number of points earned : " + this.points);

       }

       public void showCredithours(){

           System.out.println("Number of credit hours earned : " + this.credithours);

       }

       public void showAveragegrade(){

           System.out.println("Average grade point is : " + this.averagegrade);

       }

    }

  • Réponse publiée par: shannel99

    wjejsj the angle TOS I didn't have to be in your habik I didn't have a nice evening with me to be in a bit I am not sure how antibiotics for the same price and subject to a new house and subject line and I will be there in the last few weeks and then I am sorry I didn't have my name on the list and I am going to be a little more than a few days ago and it was a pleasure to fill in the last two isosceles the angle TOS the best time for a call you robo call you robo call you robo call you robo call you robo call you robo call you robo call me back when she was very excited and subject of this for you to come to know about your neighborhood to be there for a long walk in your neighborhood and respective person and you robo to do it on a different .

  • Réponse publiée par: nicole8678
    Three devices werw identified inside the. control room need magnetism to operate
  • Réponse publiée par: smith21

    (1)Plagiarism> Means that someone is stealing the work of others

    (2)Copyright infringement> This means that it protects the act of copyright

    (3)Web Page>A web page is a document that connects to the WWW(World Wide Web)

Connaissez-vous la bonne réponse?
Create a class named student. a student has fields for an id number, number of credit hours earned,...