1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dimaraw [331]
3 years ago
14

Case 2: 1a. Create a class named Student. This class has attributes (fields) for an ID number, number of credit hours earned, an

d 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.) Include an attribute for grade point average. Include a method that calculates the grade point average (equal to number of points earned divided by credit hours earned), and then displays the student number and grade point average in the following format: "The GPA for Student Number XXX is YYY". Note that XXX is the actual student number and YYY is the actual grade point average. Though credit hours earned and points earned will always be in whole (integer) numbers, make sure that you are able to calculate and display GPAs with decimal positions (e.g., 3.1).
Engineering
1 answer:
777dan777 [17]3 years ago
8 0

Answer:

The java code will be:

// Student.java

// creates a class to store info about a student

class Student

{

// the private data members

private int IDnumber;

private int hours;

private int points;

private static int lastStudentID;

// the public get and set methods

public void setIDnumber()

{

 lastStudentID += 1;

 IDnumber = lastStudentID;

}

public int getIDnumber()

{

 return IDnumber;

}

public void setHours(int number)

{

 hours = number;

}

public int getHours()

{

 return hours;

}

public void setPoints(int number)

{

 points = number;

}

public int getPoints()

{

 return points;

}

// methods to display the fields

public void showIDnumber()

{

 System.out.println("ID Number is: " + IDnumber);

}

public void showHours()

{

 System.out.println("Credit Hours: " + hours);

}

public void showPoints()

{

 System.out.println("Points Earned: " + points);

}

public double getGradePoint()

{

 return (double) (points / hours);

}

}

You might be interested in
Situation: Peter is designing a new hybrid car that functions on solar power. He is currently working on sketches of his design
givi [52]

Answer:

whats the question?

Explanation:

8 0
2 years ago
What is the effect of the workpiece specific cutting energy on the cutting forces, and why?
ella [17]

Explanation:

Specific cutting energy:

   It the ratio of power required to cut the material to metal removal rate of material.If we take the force required to cut the material is F and velocity of cutting tool is V then cutting power will be the product of force and the cutting tool velocity.

Power P = F x V

Lets take the metal removal rate =MRR

Then the specific energy will be

    sp=\dfrac{F\times V}{MRR}

If we consider that metal removal rate and cutting tool velocity is constant then when we increases the cutting force then specific energy will also increase.

8 0
4 years ago
How many 10" diameter circles can be cut from a semicircular shape that has a 20"
N76 [4]

9514 1404 393

Answer:

  1

Explanation:

Only one such circle can be drawn. The diameter of the 10" circle will be a radius of the semicircle. In order for the 10" circle to be wholly contained, the flat side of the semicircle must be tangent to the 10" circle. There is only one position in the figure where that can happen. (see attached).

3 0
3 years ago
Read 2 more answers
First person to awnser gets brainlyest!!​
Andrews [41]

Answer:

ananswer my question please

7 0
3 years ago
Read 2 more answers
Select the correct answer.
andreev551 [17]

Answer:

c

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Our goal is to design a traffic-light controller with the following properties; it lights up the green light (output G) for 15 s
    7·1 answer
  • 6. PVC boxes are primarily used in new construction because it is simple to
    11·1 answer
  • Q.17) A 50-acre catchment containing cropland is converted ot a Qatar mail
    13·1 answer
  • Whatever they said bbbbbbbbbbbbbbbbbb
    6·2 answers
  • George is replacing a burned out resistor in a circuit board. The board has a 10, a 20, and a 40 on resistor, all in parallel. W
    5·1 answer
  • What time ----–- the train arrve? ​​
    12·1 answer
  • All of these are true about using adhesive EXCEPT:
    6·1 answer
  • Which of the following is a possible consequence of poor measurement in construction as stated in the segment?
    14·1 answer
  • Many vehicles have indicator lights telling you when your
    13·1 answer
  • True or false for the 4 questions?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!